Recent

Author Topic: [SOLVED] How to "Jump To" the "begin" of a method, not the declaration  (Read 354 times)

RedOctober

  • Sr. Member
  • ****
  • Posts: 454
I've just upgraded from Lazarus 2.0.10 to 3.4.  In my old version, I can hold down the Ctrl key then click on a procedure or function call, and my cursor will jump me to the "begin" in the procedure or function who's name I clicked on.  In 3.4, when I do this, I get jumped to the declaration at the top of the unit, then I have to Ctrl+down arrow to get to the "begin".  In both versions, I have the exact same setting in Tools/ Options, Environment, Editor, Mouse, Ctrl Button = Jumps to implementation.

Is this a bug in 3.4, or is there something else I need to do to get the behavior I had in 2.0.10?

TIA.
« Last Edit: September 13, 2024, 10:43:25 pm by RedOctober »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10293
  • Debugger - SynEdit - and more
    • wiki
Re: How to "Jump To" the "begin" of a method, not the declaration
« Reply #1 on: September 13, 2024, 04:53:42 pm »
Don't know, seems to work fine for me with 3.4.

Though, I don't use this normally. I just did a once off test. That may miss something.

Ignoring if the settings are the same....
Do you have the option "jump directly to method body" enabled?

Have you tested with 
- ctrl left mouse click
- Alt cursor up
?

WooBean

  • Sr. Member
  • ****
  • Posts: 271
Re: How to "Jump To" the "begin" of a method, not the declaration
« Reply #2 on: September 13, 2024, 06:12:51 pm »
In Lazarus 3.99 (rev main_3_99-2623-g10f44cfcff) FPC 3.2.2 x86_64-win64-win32/win64 when
Tools/Options/[IDE Options]/Codetools/General/Jump directly to method body checkbox is checked - jumping works as TS expected.
« Last Edit: September 13, 2024, 06:14:40 pm by WooBean »
Platforms: Win7/64, Linux Mint Ulyssa/64

RedOctober

  • Sr. Member
  • ****
  • Posts: 454
Re: How to "Jump To" the "begin" of a method, not the declaration
« Reply #3 on: September 13, 2024, 09:52:28 pm »
Hi All, thanks for the help.  Jump works now.  I did not realize that there was another setting involved that I didn't set.

"Tools/Options/[IDE Options]/Codetools/General/Jump directly to method body checkbox is checked"

(As described by both respondents)

 

TinyPortal © 2005-2018