Change TAB size. NOT spacing but FILE NAMES at top

I have learned how to use multiple tabs to build a sketch instead of writing code all one "page". This is awesome. I am rewriting a sketch I started 6 months ago that just got way to cluttery. Now that I have learned about tabs I can keep it much more organized and do WAY less scrolling.

My question is how do I decrease the width of the tab that has the file name in the sketch? I have a lot of tabs in this sketch and am using a scroll bar to scroll left to right through them. If I could decrease the width to about .75 or .5 the "stock" width that would be great. It would eliminate the need for the need for the scroll bar while still showing enough of the file name that I know what it is.

I am NOT referring to the amount of spaces the cursor moves when hitting the tab button on the keyboard. There is tons of info online about that. This is about the tabs at the top of the sketch that include the file names.

My ide recently updated and I am unsure of the version I am using. All I can find on my computer is this: arduino-ide_nightly

Thanks for the help.

Your topic has been moved to the IDE 2.x category of the forum

Not aware of any way to shrink the editor tabs. Even if you could, with more files you could easily run into the same problem as with horizontal tabs in the browser; worse since each tab does not have a distinguishing icon.

The Sketchbook pane is a tree control, which can be used as vertical tabs for a sketch that has been saved. It won't work for a new unsaved sketch. It is opened with the top "folder" icon on the left edge, under the Verify/Compile "checkmark".

If the current sketch is saved, that sketch is highlighted in the Sketchbook. Expand it with the ">" on the left, and you'll see the contents. When a sketch is opened, all the supported files directly in the sketch folder/directory are opened as tabs.

Note that you can also include source files in a subdirectory named src, and then in any subdirectory under that. But those won't be opened automatically. Maybe a good thing for organization. On the minus side: while the compiler back end will compile those files, and the IDE will let you open and edit these files, the IDE does not provide a way to create files in subdirectories; only "tabs" directly in the sketch folder.

A sketch is a folder that contains a .ino file with the same name; all the sources are therefore, for example

  • mysketch/
    • mysketch.ino
    • arduino_secrets.h
    • all-the.ino
    • are-glued-together.ino
    • other-sources.cpp
    • other-sources.h
    • src/
      • one.cpp
      • one.h
      • two.cpp
      • two.h
      • mywidget/
        • three.cpp
        • three.h
        • four.cpp
        • four.h

Unless you're checking to see if a recent fix is working, you should not be running the Nightly version. Those are less stable, and something else might be broken or incomplete.

On the download page you can scroll down to see "Nightly Builds". But above that in a bigger font is the release version, currently "Arduino IDE 2.3.4". One tiny benefit: that name with version number is in each window's title bar.

You might wait until the next release, 2.3.5 maybe, has been out for a week or so with no major complaints; then install that.

Hi @scottcalv. I think @kenb4 gave good advice:

It should be noted that in order to get the behavior @kenb4 described, you must enable Arduino IDE's "Show files inside Sketches" preference:

  1. Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Check the box next to "Show files inside Sketches" in the "Preferences" dialog.
  3. Click the "OK" button.
    The "Preferences" dialog will close.

This:

and this:

do help with seeing them all at the same time. Thanks fellas.

10 posts were merged into an existing topic: IDE crashes my computer

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