The editor I used previously do not remove automatically blank lines at the end of a file when saving.
The atom editor does it.
Problem is, if I open such a file with atom, do some changes, undo the changes and save, the file will be seen as changed by git, only because of these removed blank lines.
I know I could each time tell git to ignore the change, but it's annoying and I'd prefer not to interfere with git.
Does anyone know a way of preventing atom to automatically delete the blank lines at the end of a file when it saves it? I can't find it in the preferences nor any package providing this feature.
The "Remove Trailing Whitespace" option is on by default. This means that every time you save any file opened in Atom, it will strip all trailing whitespace from the file. If you want to disable this, go to the whitespace package in your settings panel and uncheck that option.
To remove the horizontal line, go to Settings => Packages, find and disable a "wrap-guide". Then go to Settings = > Editor, choose a "Soft Wrap".
Usage. There is no key binding by default to avoid accidental deletes. There is also a menu item (under Packages -> Delete Current File -> Delete) that activates the command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With