Skip to content

option to enable autoformat on save #11090

Open
@adabru

Description

@adabru

Related: #2202

I am getting whitespace-spam when doing git diff on a file I edited in another IDE than Arduino IDE. That is due to trailing (=invisible) whitespace being automatically removed by those other IDEs.

Arduino's autoformat function (Ctrl+T) can be used to get rid of those whitespaces. It works very well. I guess I could get used to pressing it before each save, but that will probably not work for my teammates.

Certainly the whitespace-removal can be disabled in the other IDEs (in my case Visual Studio Community & vscode); that would be a solution in my case.

But I'd rather like to have an option in the Arduino IDE to enable autoformat on save. Is there a reason to not include it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: IDEThe Arduino IDEfeature requestA request to make an enhancement (not a bug fix)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions