Arduino Forum

Using Arduino => Installation & Troubleshooting => Topic started by: tmcfalls on Apr 24, 2019, 06:50 pm

Title: Auto format spaces to indent
Post by: tmcfalls on Apr 24, 2019, 06:50 pm
How do you change the number of spaces  to indent in the latest version of ide?

Thanks


Title: Re: Auto format spaces to indent
Post by: pert on Apr 24, 2019, 10:46 pm



Everything in the Arduino IDE installation folder is lost every time you update to a new version of the Arduino IDE. For this reason, any modifications you make to {Arduino IDE installation folder}/lib/formatter.conf need to be redone every time. Luckily, there is another place you can store that file which will not be affected by IDE updates. You can find the location of this folder by clicking the link at the line following File > Preferences > More preferences can be edited directly in the file. Save the modified formatter.conf to that location.