Option to enable MDI interface?

Is there any way to either:

  • 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!

Hi @vashjuan.

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:

  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:
    image
  2. 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.
  3. Type workspace.preserveWindow in the "Search Settings" field of the "Preferences" tab.
  4. Check the box under the "Workspace: Preserve Window" setting.
  5. 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:

image

1 Like

Oh my, I never knew of the (electron-like?) command pallet. Sweet. Thanks so much for the guidance & for all your work!

Happy holidays all!

You are welcome. I'm glad if I was able to be of assistance.

Regards,
Per

Perfect solution, that works well for me. Much appreciated!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.