Recent

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

vfclists

  • Hero Member
  • *****
  • Posts: 827
    • 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.
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

typo

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

vfclists

  • Hero Member
  • *****
  • Posts: 827
    • 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?
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4

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: 3779
  • 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.

 

TinyPortal © 2005-2018