I am using Github's atom text editor.
Most of the times, when I modify a single line in a file, git diff
shows a lot of lines as deleted and added back in this way
- @op_contact = "Not Available"
+ @op_contact = "Not Available"
This causes inconvenience in code-reviews and hence I am forced to use other editors like SublimeText.
It looks like some simple setting should fix this, but I am not sure how to do it and I don't know what to search for. There are some related questions, like this one but I want to fix it from Atom editor, as this problem is not present in SublimeText.
Atom version: 1.3.1
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.
The GitHub package brings Git and GitHub integration right inside your editor! Now you can switch or create branches, stage changes, commit, pull and push, resolve merge conflicts, view and checkout pull requests and more. Visit the 🚀 documentation to learn how to use all the features.
You are probably searching for the Whitespace package which ships with Atom by default.
It removes unnecessary whitespace at the end of each line. Disable it and your suspicious line changes should be gone.
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