Arduino IDE 1.8.19 advanced configuration which file enable / disable remove empty lines in sourcecode

Hi everybody,

three weeks ago I tested a modification of the Arduino-IDE configuration.

It is a "switch" that enables / dsiables deleting empty lines in the sourcecode *.ino-file

But I don't remember the filename and the place. Googling comes up with the most common hits that don't apply here.

I will be very thankful if somebody can answer this question

best regards Stefan

Probably formatter.conf in the same folder as preferences.txt

Here is mine if it is of any help

# This configuration file contains a selection of the available options provided by the formatting tool "Artistic Style"
# http://astyle.sourceforge.net/astyle.html
#
# If you wish to change them, don't edit this file.
# Instead, 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
# If you don't know where file preferences.txt is stored, open the IDE, File -> Preferences and you'll find a link

# 2 spaces indentation
indent=spaces=2

# also indent macros
indent-preprocessor

# indent classes, switches (and cases), comments starting at column 1
indent-classes
indent-switches
indent-cases
indent-col1-comments

# put a space after if/for/while
 pad-header

# Move opening brackets onto new line
 --style=allman --style=bsd --style=break -A1

# delete empty lines in functions
 --delete-empty-lines 

# Insert space padding around operators. 
 --pad-oper

Note that IDE 2.0 uses a different method

1 Like

HI @UKHeliBob

that was quick. Thank you very much.
best regards Stefan

We aim to please :smiley:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.