Recent

Author Topic: Jump to method body  (Read 4967 times)

balazsszekely

  • Guest
Jump to method body
« on: January 26, 2016, 07:52:17 pm »
I'm posting this, because I know a lot of people are interested. Since r51422. it's possible to jump directly to method body("Ctrl + Click"  or  "Alt+Up Arrow"). The option can be activate here: Tools-->Options-->Codetools-->General-->Check Jump directly to method body.

PS: Special thanks to @Ondrej for his usual help.

User137

  • Hero Member
  • *****
  • Posts: 1791
    • Nxpascal home
Re: Jump to method body
« Reply #1 on: January 26, 2016, 08:57:58 pm »
There is also Ctrl+Shift+Down and Up for moving between them. Ctrl+Click on units or class types allows to hop in to different files too, and all this has been available for many years.

balazsszekely

  • Guest
Re: Jump to method body
« Reply #2 on: January 26, 2016, 09:18:06 pm »
Quote
@User137
There is also Ctrl+Shift+Down and Up for moving between them. Ctrl+Click on units or class types allows to hop in to different files too, and all this has been available for many years.
Instead of pressing Ctrl+Click then Ctrl+Shift+Down, now you can press just Ctrl+Click and achieve the same thing. This is a big difference, especially on large project. If you prefer the old method, feel free to use it. The new enhanced method is optional and it has to be activated from the option dialog.

valdir.marcos

  • Hero Member
  • *****
  • Posts: 1116
Re: Jump to method body
« Reply #3 on: January 26, 2016, 09:32:16 pm »
The new enhanced method is optional and it has to be activated from the option dialog.

Just curious.
Why the new method is not the default behaviour?

balazsszekely

  • Guest
Re: Jump to method body
« Reply #4 on: January 26, 2016, 09:43:59 pm »
@valdir.marcos

Changing the default behaviour of a key combination after it has been in use for so many years, it's counter intuitive. People are expecting to behave this way(Jump to method declaration),  this is why it was implemented as an extension.

x2nie

  • Hero Member
  • *****
  • Posts: 515
  • Impossible=I don't know the way
    • impossible is nothing - www.x2nie.com
Re: Jump to method body
« Reply #5 on: January 27, 2016, 07:39:47 am »
Wait, it jump to proc body from what?
There is editor and code explorer. Both are able to jump to proc declaration. And form proc declaration clasa, the editor can jump to proc in inheritor class.
What did your changes do?
When you were logged in, you can see attachments.
Lazarus Github @ UbuntuCinnamon-v22.04.1 + LinuxMintDebianEdition5

balazsszekely

  • Guest
Re: Jump to method body
« Reply #6 on: January 27, 2016, 07:51:44 am »
@x2nie
This enhance the editor, you can jump directly to the method body(not method declaration) with Ctrl +Click. I thought, this is what you asked in point 3.(Lazarus's missing Delphi features),  you don't have to access the code explorer, you can jump directly from the editor.

TraumTaenzerDieter

  • New Member
  • *
  • Posts: 33
Re: Jump to method body
« Reply #7 on: January 27, 2016, 08:52:24 am »
@GetMem
That REALLY is a nice new feature that I was waiting for!!!

 

TinyPortal © 2005-2018