Forum > Editor

[solved] Delphi: CTRL + Click - jumped to method

(1/1)

Nicole:
How to get from a method's initialization block at quickest to the implementation?

In Delphi I did it by holding Strg and click left with the mouse at the name.
I Lazarus I need three clicks for the search function and I am ambitious to save several hundred clicks a day.  ;)

Is there some hotkey as well?

And is there even a hotkey for "minimize all methods to their headlines"?

Handoko:
On my computer, that is [Shift] + [Ctrl] + [Up/Down].

For more shortcuts:
Lazarus main menu > Tools > Options > Editor > left panel: Key Mappings

This would be useful for you:
https://wiki.freepascal.org/New_IDE_features_since

marcov:
(Note that "Strg" is the German name for CTRL)

PascalDragon:

--- Quote from: Nicole on July 18, 2022, 12:11:29 pm ---How to get from a method's initialization block at quickest to the implementation?

In Delphi I did it by holding Strg and click left with the mouse at the name.
I Lazarus I need three clicks for the search function and I am ambitious to save several hundred clicks a day.  ;)

Is there some hotkey as well?
--- End quote ---

You can use Ctrl + Click in Lazarus as well, though by default that will take you to the header. You can then do Ctrl + Shift + Down to get to the implementation. Alternatively you can install the jumptoimplementation package which will modify Ctrl + Click so that it will jump to the implementation directly instead.

Navigation

[0] Message Index

Go to full version