fsprojects-archive / zzarchive-VisualFSharpPowerTools

[ARCHIVED] Power commands for F# in Visual Studio
http://fsprojects.github.io/VisualFSharpPowerTools/
Apache License 2.0
310 stars 77 forks source link

Format document produces unnecessary trailing whitespaces #1382

Closed xperiandri closed 8 years ago

xperiandri commented 8 years ago

Description

Execution of "Format Document" command produces unnecessary trailing whitespaces

trailing whitespaces

Repro steps

  1. Install Trailing Whitespace Visualizer extension
  2. Execute "Format Document" command

    Expected behavior

No additional trailing whitespaces added

Actual behavior

Before the function on the empty line added whitespaces for indentation. After = sign and then and else key words added whitespace even though the line has no other characters after.

Related information

vasily-kirichenko commented 8 years ago

Why this is a problem?

smoothdeveloper commented 8 years ago

@vasily-kirichenko some people don't like trailing invisible char, and using a formatting tool you'd expect the output to be closest to optimal format (disregarding aesthetics).

Also those trailing characters tend to create unnecessary churn during the life of files because some will get added/removed often unknowingly.

Many people or even editors have default settings stripping those out.

vasily-kirichenko commented 8 years ago

Report it to Fantomas repository.