user45249: 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.

user45249: 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.


45249: <p>How can I change Arduino IDE preferences for formatting? I found the preferences file: <code>&lt;user&gt;/.arduino15/preferences.txt</code>, but there are no lines that control IDE formatting. In Windows there is a special file for formatting: <code>&lt;ArduinoIDE_folder&gt;/lib/formatter.conf</code>.</p>
 45249: <p>It happened, that my <code>formatter.conf</code> was in <code>/usr/share/arduino/lib/</code>. So I copied it to <code>/home/&lt;user&gt;/.arduino15/</code> folder and made changes that I needed. And also:</p>

<blockquote>
  <p>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.</p>
</blockquote>
