Please consider the following change to the Arduino IDE. Program components like global variables, constant definitions, classes, functions, etc. could be viewed in a tree view interface instead of a text edit interface. You start off with all the tree view nodes collapsed with the name of the component (function name, class name, etc.) or words like "Global variables" displaying on the node. You click on the node to open and edit the component. This way, you get a bird's eye view of the file being edit at the start and can edit the desired component without scrolling or searching for it in the text file. Thanks.
Hi @curtiswolf. Arduino IDE does have a feature similar to what you are requesting. It is called the "Outline view". I'll provide instructions you can follow to access it:
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:
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.
The "OUTLINE" view will open in the side panel at the left hand side of the Arduino IDE window.
You can also configure a keyboard shortcut to provide more efficient access to the Outline view. Keyboard shortcuts are configured by selecting File > Advanced > Keyboard Shortcuts from the Arduino IDE menus.
However, you should be aware that we don't officially support the "Outline view" feature. This feature is provided by the general purpose open source Eclipse Theia Platform IDE framework Arduino IDE is built on, not something implemented by the Arduino developers. We do have a bug report about the Outline view not always working correctly:
But definitely check out the folding feature @sonofcy suggested. I haven't found myself using the Outline view (even in other IDEs+languages where it is officially supported), but I do use folding all the time. Of course you can use both features as appropriate. There are some specific cases in which the folding behavior doesn't match the program structure:
However, I don't think this deficiency is something you would find to render the feature useless. The most important thing is to make sure to perform an "Auto Format" operation on your code to ensure the indentation is all correct before performing a "Fold" operation on the code.