Arduino IDE: setting tab indent to another value
Change default tab setting to four (4) spaces in IDE (applies to version 1.6.10 and later.)
Steps:
Exit Arduino IDE. (otherwise the closing of application will overwrite preferences file.)
Edit preferences.txt on two lines:
Create new file:
- formatter.conf
in your Arduino directory (in the same location as preferences.txt)
in windows:
C:\Program Files (x86)\Arduino\lib = C:\Users\{USRNAME}\AppData\Local\Arduino15on mac: it's /Users/{USRNAME}/Library/Arduino15/
Add this one line:
indent=spaces=4
editor.tabs.expand=true
editor.tabs.size=4
Save and exit.
Then save and relaunch.
Tabbing and auto-formatting (^t) will indent consistently.
References:
Information source: (https://github.com/arduino/Arduino/issues/5012)
No comments:
Post a Comment