Recent

Author Topic: [solved] Delphi: CTRL + Click - jumped to method  (Read 264 times)

Nicole

  • Sr. Member
  • ****
  • Posts: 352
[solved] Delphi: CTRL + Click - jumped to method
« 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?

And is there even a hotkey for "minimize all methods to their headlines"?
« Last Edit: July 18, 2022, 03:55:24 pm by Nicole »

Handoko

  • Hero Member
  • *****
  • Posts: 4712
  • My goal: build my own game engine using Lazarus
Re: Delphi: Strg + Click - jumped to method
« Reply #1 on: July 18, 2022, 12:18:28 pm »
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

  • Administrator
  • Hero Member
  • *
  • Posts: 10291
  • FPC developer.
Re: Delphi: Strg + Click - jumped to method
« Reply #2 on: July 18, 2022, 12:33:10 pm »
(Note that "Strg" is the German name for CTRL)

PascalDragon

  • Hero Member
  • *****
  • Posts: 4562
  • Compiler Developer
Re: Delphi: Strg + Click - jumped to method
« Reply #3 on: July 18, 2022, 01:52:15 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?

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.

 

TinyPortal © 2005-2018