Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

option to enable autoformat on save #11090

Copy link
Copy link
Open
@adabru

Description

@adabru
Issue body actions

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 IDEThe Arduino IDEfeature requestA request to make an enhancement (not a bug fix)A 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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.