Open a new tab (NOT Window) when opening a sketch -- i.e., a Mult-Document Interface (MDI)?
or
Close the current sketch and open another sketch in the same window?
Having to close the old window and resize the new IDE interrupts my flow. This frustrates me & wastes some time -- but maybe I don't know some option to change the behavior?!
Visual Studio Code (free editor for Mac, Linux & Windows) from Microsoft may be the more elegant solution I guess, it handles all these options with aplomb.
Love the other enhancements & functionality though!
Arduino IDE is designed to use a separate window for each sketch. This might seem unnecessary if you are working with sketches that consist of only a single file, but sketches may consist of multiple files, all of which are compiled into a single program. Arduino IDE's design, where the files that make up a single program are all open in a dedicated window, communicates this fact to the user intuitively.
It is possible to configure the IDE for this behavior in the advanced settings. I'll provide instructions:
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 "Preferences: Open Settings (UI)" command from the menu. ⓘ You can scroll down through the list of commands to find it or type the name in the field.
A "Preferences" tab will open in the Arduino IDE main panel.
Type workspace.preserveWindow in the "Search Settings" field of the "Preferences" tab.
Check the box under the "Workspace: Preserve Window" setting.
Close the Preferences tab by clicking its X icon.
This is being tracked by the Arduino IDE developers here:
If you have a GitHub account, you can subscribe to that issue to get notifications of any new developments related to this subject: