1

How can I change Arduino IDE preferences for formatting? I found the preferences file: <user>/.arduino15/preferences.txt, but there are no lines that control IDE formatting. In Windows there is a special file for formatting: <ArduinoIDE_folder>/lib/formatter.conf.

  • same place <ArduinoIDE_folder>/lib/formatter.conf – Juraj Mar 29 '18 at 15:13
  • @Juraj , as <ArduinoIDE_folder> do u mean <user>/.arduino15? – koshachok Mar 29 '18 at 15:25
  • no, .arduino15 is on Windows C:\Users\User\AppData\Local\Arduino15. I installed Arduino IDE on linux into /home/user/arduino-1.8.5 – Juraj Mar 29 '18 at 15:43
  • I have my custom formatter.conf in /home/<user>/.arduino15 – Jot Mar 29 '18 at 15:56
1

It happened, that my formatter.conf was in /usr/share/arduino/lib/. So I copied it to /home/<user>/.arduino15/ folder and made changes that I needed. And also:

Copy it in the same folder of file "preferences.txt" and modify the copy. This way, you won't lose your custom formatter settings when upgrading the IDE.

  • That is correct. However, when upgrading, I often the remove the .arduino15 folder as well to make a fresh start. Recently I had to remove the .arduino15 folder without upgrading to a new version. The arduino ide was sometimes slow and had troubles when installing new libraries. – Jot Mar 29 '18 at 19:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.