-
-
Notifications
You must be signed in to change notification settings - Fork 80
trim_trailing_whitespace
property
#3
Comments
In other words, Atom bundles a package called "Whitespace" which conflicts with editorconfig and will (by default) remove trailing whitespace even if your .editorconfig file specifies not to remove it (for example with jade files). As a work around, you can open Atom preferences for the Whitespace package and disable the Whitespace package. |
In the VS Code extension we have to do it manually because there just isn't an option to do this with core methods. Same goes for https://github.com/editorconfig/editorconfig-vscode/tree/master/src/transformations |
As already mentioned, this functionality is implemented by the atom-whitespace-package. As soon as i have found out how to interact nicely with the whitespace-package, we're going on to implement that functionality. I'll try to find a solution with the package-maintainer. ☕ |
This is the final reorder of the PRs around the next minor release fulfilling containing the following changes: * Clicking in the statusbar-icon displays a notification, showing the currently applied config and helpful tips if something seems misconfigured (fixes #89) * Added clickable statusbar-icon to reflect the state of atom-editorconfig for the currently displayed TextBuffer * Editing `.editorconfig`-files from within Atom now reapplies the settings to all open editors (fixes #85) * The `trim_trailing_whitespace`-property is now implemented (fixes #3) * The `insert_final_newline`-property is now implemented (fixes #4) * The `generate`-command now uses `config.get()` to fetch the defaults for `trim_trailing_whitespace` and `insert_final_newline` (fixes #94) * The `tab_width`-property now falls back to `indent_size` if missing (fixes #91) This PR takes the PRs #104 & #102 over.
I found out that whitespaces are another opinionated thing and of course "when they can they enforce their own vision", and Atom felt to enforce to everyone that. Okay overlords. Fine. sindresorhus/atom-editorconfig#3 And then we wonder why the human race doesn't get along very well.
http://editorconfig.org
The bundled whitespace plugin has an option for this called
removeTrailingWhitespace
I can change it with:
atom.config.set('whitespace.removeTrailingWhitespace', true);
, but that changes it globally and we definitely don't want that. From what I can figure out from the docs it isn't possible to override config on a per buffer basis like you can with Sublime.The text was updated successfully, but these errors were encountered: