IDE Shortcut to Jump to declaration and Jump to calls
Posted: Sun Feb 06, 2022 1:37 pm
One feature I regularly miss on the PB IDE¹ is a keyboard shortcut that
-- jumps to the Procedure declaration when the cursor is on a procedure call,
-- shows a list of Procedure calls when the cursor is on a Procedure declaration
...in the style of Eclipse and IntelliJ Idea.
There is a keyboard+mouse shortcut to the Procedure declaration - [Ctrl]+[DblClick] -, which is handy but may be missed as it is "only" in the manual - not in the menu, nor in the keyboard shortcuts definition list.
So, one simple addition, since the feature is already there, implemented, would be to add definable keyboard shortcuts (Preferences > General > Shortcuts) for "jump to Procedure declaration".
And a more complex addition would be to have that shortcut, when used on the declaration, produce in a pop-up a list of lines involving the procedure calls, to jump from declaration to calls.
This enables to jump to and from, in a way, from declaration to call (and call/s/ when needed).
By the way: I understand the IDE is now open-source? We can propose code ourself on GitHub - possibly also an implementation of this proposal?
--
¹Incidentally: what I missed on all other IDEs I have used, is the "Procedure (method, etc.) parameters" help in the statusbar, the way of the PB IDE. I find that feature so vital. When I use those other IDEs and their "nuclear reactor features", the weight is all for missing the PB one and its "the most vital are present, not missed!". Oh, and of course: it loads instantly; "no lengthy paperwork requested" to do your things. Just saying. Wanted to share.
-- jumps to the Procedure declaration when the cursor is on a procedure call,
-- shows a list of Procedure calls when the cursor is on a Procedure declaration
...in the style of Eclipse and IntelliJ Idea.
There is a keyboard+mouse shortcut to the Procedure declaration - [Ctrl]+[DblClick] -, which is handy but may be missed as it is "only" in the manual - not in the menu, nor in the keyboard shortcuts definition list.
So, one simple addition, since the feature is already there, implemented, would be to add definable keyboard shortcuts (Preferences > General > Shortcuts) for "jump to Procedure declaration".
And a more complex addition would be to have that shortcut, when used on the declaration, produce in a pop-up a list of lines involving the procedure calls, to jump from declaration to calls.
This enables to jump to and from, in a way, from declaration to call (and call/s/ when needed).
By the way: I understand the IDE is now open-source? We can propose code ourself on GitHub - possibly also an implementation of this proposal?
--
¹Incidentally: what I missed on all other IDEs I have used, is the "Procedure (method, etc.) parameters" help in the statusbar, the way of the PB IDE. I find that feature so vital. When I use those other IDEs and their "nuclear reactor features", the weight is all for missing the PB one and its "the most vital are present, not missed!". Oh, and of course: it loads instantly; "no lengthy paperwork requested" to do your things. Just saying. Wanted to share.