Recent

Author Topic: [SOLVED] Jump to actual code of a function / procedure  (Read 2528 times)

tudi_x

  • Hero Member
  • *****
  • Posts: 532
[SOLVED] Jump to actual code of a function / procedure
« on: July 24, 2018, 11:36:59 am »
hi,
i am trying to jump to the actual code of a function / procedure.
prior i used the below script but now on Linux and 1.8.4 it looks like not working.

Code: XML  [Select][+][-]
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <CONFIG>
  3.   <EditorMacros Count="1">
  4.     <Macro1 Name="JumpToDefinition">
  5.       <Code Value="begin
  6.                ecFindDeclaration;
  7.                ecLineEnd;
  8.                ecFindProcedureDefinition;
  9.               end.  
  10.      "/>
  11.       <KeyA Key1="50" Shift1="2"/>
  12.     </Macro1>
  13.   </EditorMacros>
  14. </CONFIG>

please advise how i could map a macro to actual jump to the actual code of a function / procedure with 1.8.4.
thank you
« Last Edit: August 05, 2018, 04:55:16 pm by tudi_x »
Lazarus 2.0.2 64b on Debian LXDE 10

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Jump to actual code of a function / procedure
« Reply #1 on: August 04, 2018, 03:03:39 pm »
please advise how i can jump directly to function code using macros in Lazarus 1.8.4 with Linux OS.
thank you
Lazarus 2.0.2 64b on Debian LXDE 10

TraumTaenzerDieter

  • New Member
  • *
  • Posts: 28
Re: Jump to actual code of a function / procedure
« Reply #2 on: August 04, 2018, 03:31:48 pm »
I don't know if Lazarus acts different under Linux,
but here on Windows it is set (by default?) to
CTRL + left Mouse-Button
You can set it under
    Tools / Settings / Editor / Mouse

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Jump to actual code of a function / procedure
« Reply #3 on: August 04, 2018, 05:42:05 pm »
thank you.
the CTRL + left MB key combination jumps on my IDE to the definition and not to the actual code.
i need to jump to where i have the begin ... end code.
Lazarus 2.0.2 64b on Debian LXDE 10

wp

  • Hero Member
  • *****
  • Posts: 11923
Re: Jump to actual code of a function / procedure
« Reply #4 on: August 04, 2018, 06:11:31 pm »
thank you.
the CTRL + left MB key combination jumps on my IDE to the definition and not to the actual code.
i need to jump to where i have the begin ... end code.
In "Tools" > "Options"  > "CodeTools" > "General" there is a box "Jump directly to method body". Check it to have your requested behavior.

tudi_x

  • Hero Member
  • *****
  • Posts: 532
Re: Jump to actual code of a function / procedure
« Reply #5 on: August 05, 2018, 04:55:02 pm »
it worked.
thank you!
Lazarus 2.0.2 64b on Debian LXDE 10

 

TinyPortal © 2005-2018