Recent

Author Topic: Can the Code Explorer double click jump the to the function implementation?  (Read 2930 times)

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
Can the Code Explorer  double click be configured to jump the to the function implementation, instead of the declaration?

I think the implementation should be the default as that is what developers will want to see most of the time.
Lazarus 3.0/FPC 3.2.2

typo

  • Hero Member
  • *****
  • Posts: 3051
If you press Shift+Ctrl+Down, you jump to the function implementation.

vfclists

  • Hero Member
  • *****
  • Posts: 1013
    • HowTos Considered Harmful?
If you press Shift+Ctrl+Down, you jump to the function implementation.

I want to do it a single step, without moving my fingers to back to the keyboard.

Can it be the double click mapping be reconfigured?
Lazarus 3.0/FPC 3.2.2

hinst

  • Sr. Member
  • ****
  • Posts: 303
if you have mouse with back & forward buttons or a gaming mouse with lots of buttons, then you can map those buttons, well, you got it
Too late to escape fate

P.curtis

  • Jr. Member
  • **
  • Posts: 80
Change this

procedure TCodeExplorerView.CodeTreeviewDblClick(Sender: TObject);
begin
  JumpToSelection;
end;

to this

procedure TCodeExplorerView.CodeTreeviewDblClick(Sender: TObject);
begin
  JumpToSelection(true);
end;

in c:\lazarus\ide]codeexplorer.pas, rebuild IDE and your good to go.

I tried this in Lazarus v 2.0.8

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4459
  • I like bugs.
Can the Code Explorer double click be configured to jump the to the function implementation, instead of the declaration?
No but the mouse middle click already does that.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

 

TinyPortal © 2005-2018