I don't know about others, but I frequently switch between the 'Setup' and 'Loop' functions. Perhaps we could add links to these key functions in the toolbar?
Hmmm never felt the need but wondered if you could put “ loop” as a new tab ( never tried it )
Really you might be better off making use of functions , then your “loop” can just call these functions and would be very simple . You can then put each function in a different tab where they can be simply read .
Really it’s hard to work with a lot of code in loop
With ide2 you can easily jump to functions when editing if you don’t like tabs .
Other tricks then become possible , you can make and save functions that you can easily import to any new sketch.
You can also call functions from setup
I agree, it would be nice to have a side window of all the available functions for that active file. Or if you have multiple tabs, it would group the functions by file for a quick jump.
Maybe we can also see the return types for each function too?
Select the "View: Toggle Outline" command from the menu. ⓘ You can scroll down through the list of commands to find it, or type the command name in the field.
An "OUTLINE" view will open in the left hand panel of the Arduino IDE window. You can click on any item in the outline to jump to the declaration/definition of that item. You can toggle its visibility via the icon on the activity bar on the left side of the window.
Unfortunately it is a bit bugged:
Another way to quickly navigate to a given declaration/definition is via the "Go to Symbol..." feature:
Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
Select the "Go to Symbol..." command from the menu.
The menu with change to a list of the list of symbols declared/defined by the selected code file. You can select a symbol from the list to jump to that symbol. You can access this feature more efficiently via the associated keyboard shortcut. Check File > Advanced > Keyboard Shortcuts to determine/customize the shortcut.
A somewhat related feature is the "Minimap", which provides a small overview of the code at the right side of the Arduino IDE window to facilitate navigation:
Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
Select the "View: Toggle Minimap" command from the menu.