External editor - jump to specific code line

Technical Note 83609

Architectures:

All

Component:

IDE

Updated:

2/8/2018 6:14 AM

Introduction

How do I get the external editor to jump to the specific code line of my compilation warning or error?

Solution

Give the correct command line arguments for the external editor you are using.

Example using Notepad++

In the Build Messages window you have:

Error[Pe020]: identifier "P_1OUT" is undefined C:\Users\PerDA\Documents\IAR Embedded Workbench\430\FET_examples\FET_examples\msp430x1xx\C-source\msp430x1xx_fet_1.c 31

In IAR Embedded Workbench, open the settings dialog: Tools > Options... > Editor > External Editor

  • Tick 'Use External Editor'
  • Type: Command Line
  • Editor: C:\Program Files (x86)\Notepad++\notepad++.exe
  • Arguments: "$FILE_PATH$" -n$CUR_LINE$

Details

For other editors you have to look in the documentation of that editor to see what the specific arguments for your editor should be.

All product names are trademarks or registered trademarks of their respective owners.

We do no longer support Internet Explorer. To get the best experience of iar.com, we recommend upgrading to a modern browser such as Chrome or Edge.