Learn how to control text and display size in Arduino IDE.
In this article:
Change settings in Arduino IDE 2
Change settings in Preferences
-
Open Preferences from the menu bar, or use the keyboard shortcut:
- File > Settings (Windows/Linux) / Arduino IDE > Settings (macOS).
Ctrl
+,
(Windows/Linux) /⌘
+,
(macOS).
-
Change the font size or interface scale settings:
- Editor: Font Size – Controls the editor and output console text size in pixels (default: 12).
- Interface scale – Changes the size of all UI elements (default: 100%)
-
Click the OK button to confirm the changes.
Change settings in user or workspace settings
For more advanced settings, you need to use the
-
Use one of these keyboard shortcuts to open the Command Palette:
-
Press
Ctrl
+Shift
+P
(Windows/Linux) /⌘
+Shift
+P
(macOS) -
Press
F1
.
-
-
In the list of commands, find and select Preferences: Open Settings (UI).
-
Check the Commonly Used group at the top, use the sidebar, or try typing “font” in the search bar.
-
These are some settings that you can use to control the way text is displayed in Arudino IDE 2:
- Editor: Font Size – Controls the font size in pixels.
- Editor: Font Family – Controls the font family.
- Editor: Font Weight – Controls the font weight. Accepts “normal” and “bold” keywords or numbers between 1 and 1000.
- Terminal › Integrated: Font Size – Controls the font size in pixels of the terminal.
-
When you’re finished, close the Preferences tab to return to your sketch.
Note
By default, the User tab is selected. This means the settings will apply globally to any instance of Arduino IDE. Alternatively, you can edit settings the Workspace tab, which will apply only to sketch that’s open when making the change.
Learn more about user and workspace settings in Visual Studio Code Docs.
Change settings in Arduino IDE 1
Change settings in Preferences
-
Open Preferences from the menu bar, or use the keyboard shortcut:
- File > Settings (Windows/Linux) / Arduino > Settings (macOS).
Ctrl
+,
(Windows/Linux) /⌘
+,
(macOS).
-
Change the font size or interface scale settings:
- Editor: Font Size – Controls the editor and output console text size in pixels (default: 12).
- Interface scale – Changes the size of all UI elements (default: 100%).
-
Click the OK button to confirm the changes.
-
If you made changes to the scale setting, you need to restart the IDE for the changes to take effect.
Making changes in the preferences.txt file
-
Open Preferences from the menu bar, or use the keyboard shortcut:
- File > Settings (Windows/Linux) / Arduino > Settings (macOS).
Ctrl
+,
(Windows/Linux) /⌘
+,
(macOS).
-
In Preferences, look for the link to the
preferences.txt
file in the bottom-right corner. Click on it to open the Arduino15 folder in your system’s file manager. -
Close Arduino IDE.
-
Open the
preferences.txt
file with a text editor. -
Look for the line starting with
editor.font
. Replace the current font (after the equals sign) with a preferred font available on your system. -
Save your changes to the file.
-
Re-open the IDE to see the changes implemented.