* * *

Author Topic: Ctrl-click jumps to the declaration, not implementation. Fixable?  (Read 707 times)

Artlav

  • New member
  • *
  • Posts: 28
    • Orbital Designs
When i ctrl-click a procedure's name in code, the editor would jump to the procedure's declaration in the interface section of the relevant unit (when it's in another unit), which is supremely useless.
Is there a way to make it jump to the actual procedure on ctrl+click, like it does in Delphi?

Only thing i can find is two-step - pressing ctrl+shift+down after ctrl-click got you to the interface, which is kinda unwieldy. I would have liked a more direct method.

Pascal

  • Sr. Member
  • ****
  • Posts: 486
Re: Ctrl-click jumps to the declaration, not implementation. Fixable?
« Reply #1 on: May 29, 2017, 04:11:53 pm »
Mark "jump directly to method body" in "Tools/Options..." Codetools.
laz trunk - fpc trunk 32bit - Windows 10 Pro x64

Artlav

  • New member
  • *
  • Posts: 28
    • Orbital Designs
Re: Ctrl-click jumps to the declaration, not implementation. Fixable?
« Reply #2 on: May 29, 2017, 06:53:28 pm »
Great, that did exactly what i wanted.
Thanks!

volvo877

  • Newbie
  • Posts: 3
Re: Ctrl-click jumps to the declaration, not implementation. Fixable?
« Reply #3 on: July 27, 2017, 09:36:28 am »
How can I mark it, if it's not there? Is something changed?
(latest version, svn 54278, downloaded 10 minutes ago)

wp

  • Hero Member
  • *****
  • Posts: 3727
Re: Ctrl-click jumps to the declaration, not implementation. Fixable?
« Reply #4 on: July 27, 2017, 09:50:48 am »
This is is outdated. What did you download? The latest svn revision is 55597.
Lazarus trunk / fpc 3.0.0 / Win32

rvk

  • Hero Member
  • *****
  • Posts: 2648
Re: Ctrl-click jumps to the declaration, not implementation. Fixable?
« Reply #5 on: July 27, 2017, 12:20:54 pm »
Why do you use your mouse for that? Your hands are already on the keyboard  ;D

I use Alt+Arrow up to go to the declaration and then Ctrl+Shift+Arrow down to go to the implementation.

But in trunk the option should be there.
(At least for 55550, compiled on july 20th, it is).

Strange, according to this it should also already be in r51422.
http://forum.lazarus.freepascal.org/index.php?topic=31256.0
Are you sure you don't have a Lazarus 1.2 accidentally.
Check Help>About Lazarus.

« Last Edit: July 27, 2017, 12:25:48 pm by rvk »

rvk

  • Hero Member
  • *****
  • Posts: 2648
Re: Ctrl-click jumps to the declaration, not implementation. Fixable?
« Reply #6 on: July 27, 2017, 12:29:57 pm »
Found it. Your Revision svn 54278 isn't trunk.
It's just Lazarus 1.6.4 and that doesn't have the option.
The option is in trunk.

But I'm puzzled as to why it would be in r51422 in the past but not in stable release of Lazarus 1.6.4 (i.e. 54278).


 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus