translation

This is an AI translated post.

Lucy Archive

Arduino IDE Setup #2. Arduino IDE Dark Theme, Font, Tab Spacing Settings +a (Useful Setup)

  • Writing language: Korean
  • Base country: All countries country-flag

Select Language

  • English
  • 汉语
  • Español
  • Bahasa Indonesia
  • Português
  • Русский
  • 日本語
  • 한국어
  • Deutsch
  • Français
  • Italiano
  • Türkçe
  • Tiếng Việt
  • ไทย
  • Polski
  • Nederlands
  • हिन्दी
  • Magyar

Summarized by durumis AI

  • The original Arduino IDE lacks readability and thus reduces productivity. This article introduces how to set up line numbers, show detailed output during compilation, apply a dark theme, change fonts and tab spacing, and more to enhance programming productivity.
  • You can apply a dark theme by downloading it from GitHub and replacing the existing theme folder in the lib folder within the Arduino installation directory.
  • You can change the font, tab spacing, and editor window size by opening the preferences.txt file, which is the Arduino account settings file, and modifying it.

Recommended Arduino IDE Settings

Summary

The existing Arduino IDE has the advantage of being compact, but it lacks readability and low productivity. It is difficult to use even with slightly complex code. This post guides you through setting up the Arduino IDE to improve your programming productivity. This setup is up to your personal preference, so please refer to it. It is not mandatory.

Setting Content

  • Add line numbers
  • Show detailed output when compiling
  • Apply dark theme
  • Change font
  • Change font size
  • Change indentation tab spacing
  • Change the initial editor window size when the IDE runs

Applying Settings

Add line numbers

  • Settings: Menu bar > File > Preferences: Check 'Show line numbers' in the Settings tab
Arduino IDE Line Number Display Setting

Arduino IDE Line Number Display Setting


Comparison before/after setting line numbers

Arduino IDE Line Numbers

Arduino IDE Line Numbers

Show detailed output when compiling

When the code becomes complex, it is sometimes difficult to know where the error occurred during compilation. If you click to show detailed output during compilation, it is easy to check where the error occurred.

  • Settings: Menu bar > File > Preferences: Select compile from 'Show detailed output during:'
Arduino Compile Detailed Output Display Setting

Arduino Compile Detailed Output Display Setting

Dark theme settings

1. Download path for Dark Theme - Click
2. Download the theme file from the Dark Theme download path

3. Unzip the downloaded file: 'theme' folder is the folder to be moved to the Arduino installation file folder.



4. Move to the lib folder inside the Arduino installation folder. In my case, the path is C:\Program Files (x86)\Arduino\lib.
5. Change the name of the existing theme folder inside the lib folder to theme(old).


6. Move the theme folder from the theme downloaded from Github to the lib folder above.


7. Change the file name as shown in the picture below from the syntax folder inside the copied theme folder.
1. default.xml -> Change the file name to default_old.xml
2. dark.xml -> Change the file name to default.xml


8. When you run the Arduino IDE, you can see that the Dark Theme is applied as below.

Arduino IDE Dark Theme

Arduino IDE Dark Theme

Other settings: font, tab spacing, editor window size

I would like to set the following details.

  • Font type: D2Coding (Good Korean readability, so I chose it)
  • Font size: 16
  • Tab size: 4
  • Initial editor window size: 900 x 900 px

Before proceeding with the settings below, you need to exit the Arduino program and install the font you will use.

  • Move to the Arduino account settings file: C:\Users\{Username}\AppData\Local\Arduino15\preferences.txt
  • Open the file and modify the following contents.
    • Line 20: editor.font=Monospaced,plain,14 -> Change to D2Coding,plain,16
    • Line 30: editor.tabs.size=2 -> Change to 4
    • Line 32: editor.window.height.default=600 -> Change to 900
    • Line 34: editor.window.width.default=500 -> Change to 900

Final Result Comparison

Arduino Environment Setup Before and After Comparison

Environment Setup Before and After Comparison


Thank you for reading until the end. 😊


Footnotes

1. Download D2Coding font: https://github.com/naver/d2codingfont

Yongmin Kim
Lucy Archive
배우는 것을 좋아합니다.
Yongmin Kim
Arduino Environment Setup #1. Installing Arduino IDE and Running Blink Example This post explains how to install the Arduino IDE and download and run the Blink example on an Arduino Uno board. It provides a step-by-step guide to prepare the necessary materials including PC, Arduino Uno, USB cable, how to select the board and port in

June 11, 2024

[php] Setting up Codeigniter 4 on Ubuntu This is a guide to setting up a Codeigniter 4 development server. After installing Apache2 and PHP 7, download the Codeigniter 4 framework files and upload the project files. After setting permissions, installing essential PHP extensions, and modifying th
투잡뛰는 개발 노동자
투잡뛰는 개발 노동자
투잡뛰는 개발 노동자
투잡뛰는 개발 노동자
투잡뛰는 개발 노동자

March 27, 2024

Writing my first post on durumis durumis is a platform that automatically translates articles into 18 languages and provides various formatting functions such as bold, italic, and underline. While it does not yet support adding spaces between code blocks and quotes, you can use Shift+Ent
이것저것 잡다한 이야기
이것저것 잡다한 이야기
이것저것 잡다한 이야기
이것저것 잡다한 이야기

April 14, 2024

Recommended editing, timer, and note-taking programs to help with writing! We introduce various writing programs and data management tools for writers. Hangeul, Scrivener, Darkroom, FocusWriter, Typora, etc. We compare and analyze paid/free writing programs and data management tools such as Evernote and PicPick, and provide info
길리
길리
길리
길리
길리

April 12, 2024

Handy Tips for Editing Korean Documents: HWP (Hangul Word Processor) Open and edit HWP files online with Hancom Docs. This article introduces useful tips for using Korean documents, such as adjusting character spacing, dividing pages, and indenting paragraphs. Check out the main features of Hancom Docs, which you can use f
길리
길리
길리
길리
길리

April 5, 2024

Introducing Rector, a PHP Version Upgrade Tool This article introduces the Rector tool to address compatibility issues when upgrading the PHP version of GNU Board 5. Rector is a static analyzer that automatically upgrades PHP 5.3 to 8.2 code to the target version. After installing Composer and Rector,
초록 기린
초록 기린
초록 기린
초록 기린

March 24, 2024

Building a US Stock Auto Trading Program Version 2.0 This blog post details the process of building US stock auto trading program version 2.0, utilizing UiPath RPA, SQL Server, Telegram chatrooms, and more to build an automated trading system. Building upon the experience gained from version 1.0, we present
(로또 사는 아빠) 살림 하는 엄마
(로또 사는 아빠) 살림 하는 엄마
(로또 사는 아빠) 살림 하는 엄마
(로또 사는 아빠) 살림 하는 엄마
(로또 사는 아빠) 살림 하는 엄마

April 20, 2024