Suggestion to Arduino IDE

Hello.

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

// in pretend code :

void  setup()
{
//blah blah
SetupComs();
SetupIO();
}

void loop()
{
Readinputs();
Dostuff();
DootherStuff();
}

There may be other ideas coming along …

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?

You can fake it with a global search

It's not perfect and can get confused when editing the code. But the 'eye' at the right can be used to refresh.

Hi @PRLJacek. There is an "Outline" view that allows navigation to the declaration/definitions in the selected code file:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
    A menu will appear on the editor toolbar:
  2. 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:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
  2. 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:

  1. Press the Ctrl+Shift+P keyboard shortcut (Command+Shift+P for macOS users) to open the "Command Palette".
  2. Select the "View: Toggle Minimap" command from the menu.