-
Notifications
You must be signed in to change notification settings - Fork 148
Do not automatically trim end of line white space #27
Comments
@gabriel-r Sorry for the confusion! This behavior is controlled by the Whitespace package which is included by default with Atom. You can turn off this trimming by going to Atom > Preferences, and then scrolling down until you see the Whitespace package. Click on the package and you will be able to either disable the package entirely, or use the provided config options to disable just the "Remove trailing whitespace" feature. |
Thanks for the clarification! |
Disabled ignore whitespace only lines in PackagesWhitespace. |
I disabled the "Remove Trailing Whitespace" option from the Whitespace package. I did notice a menu item for this action on demand. Just curious whether it is possible to add a keybinding for doing this? |
@ziru Yeah, that should be possible. For example, add this to your keymap.cson:
Also check out these docs: https://atom.io/docs/latest/using-atom-basic-customization#configuring-with-cson |
When opening a file, all white space at the end of each line is trimmed.
This is quite annoying when diffing changes.
The text was updated successfully, but these errors were encountered: