Easy way to open current file in external editor? lazarus / 9-Editor ---------------------------------------------------------------------- dculp · 2019-06-14 21:22 Of course I can open the desired editor (Editpad Pro) and then open the current IDE file. However, is there a way to invoke the external editor and the current file directly from the Lazarus IDE? Lazarus 2.0.2, Windows 7 Pro Thanks, Don C. ---------------------------------------------------------------------- lucamar · 2019-06-14 21:32 Add it as an external tool to Lazarus - menu: "Tools->Configure External Tools ..." Example in the attached image. ---------------------------------------------------------------------- dculp · 2019-06-15 02:01 Is there a way to open to the current IDE line number or cursor position? ---------------------------------------------------------------------- lucamar · 2019-06-15 10:03 Quote from: dculp on June 15, 2019, 04:01:47 amIs there a way to open to the current IDE line number or cursor position? If the external editor allows setting them in the command line, then yes, using the macros $Col() and $Row(). Following on the example above for leafpad you would just set the parameters to: Code: [Select]--jump=$Row() $EdFile() Note that if the file on disk is different than the one in the IDE (i.e. if it's modified) you have to save it first by adding $Save() to the parameters like this: Code: [Select]--jump=$Row() $EdFile() $Save() As yo can see in the image, there is a full list of macros in the "Add tool" window. Play with them to see their effects ---------------------------------------------------------------------- dculp · 2019-06-20 13:02 The following works in EditPadPro7 where command line parameters L=line and C=column -- $EdFile() /L$Row() /C$Col()