Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

IDE: remove trailing spaces

Open MrScarabus opened this issue 12 years ago • 4 comments

Can you make an option to remove trailing spaces in editor, sometimes it's very annoying.

MrScarabus avatar Jul 21 '14 23:07 MrScarabus

I second this. github gui shows all the trailing spaces in RED, so yes it is annoying.

d0ughb0y avatar Aug 22 '14 15:08 d0ughb0y

You can actually do it (sort of) by using the new "Auto Format" that was improved in 1.5.5 using Artistic Style: http://astyle.sourceforge.net/. It removes all trailing spaces as well.

Maybe it would be possible to use that to only remove trailing spaces?

Lauszus avatar Aug 23 '14 19:08 Lauszus

AStyle is the way to go. You can have your own formatter.conf file: put it in the same folder as preferences.txt and restart the ide

ffissore avatar May 26 '15 15:05 ffissore

I'm not sure why this is closed. Why do some settings need a third-party program while others don't? This is an important setting to have built-in...

pedzed avatar Apr 15 '17 20:04 pedzed