Editorconfig Guide.e

Trim trailing whitespace

EditorConfig key: trim-trailing-whitespace

Trim trailing whitespace

trim-trailing-whitespace

This option controls whether any whitespace characters at the end of a line are removed when the file is saved.

Default value:

true

Possible values:

  • true
  • false

Examples

true
if(true) {
··return;
}
false
if(true) {
··return;···
}