3
I've recently tried atom and have one thing against it: it tries to do the smart thing and removes all trailing spaces when I save a file - without telling me. Some editor does this but this is bad when it comes to change control. Not sure why the programmers would make this the default behavior and I couldn't find an option to disable it.
Is there a way to disable this in Atom?
For the record: you don't want this whitespace commit noise to show up day to day in your commits. If you're working in a team it's a good idea to 1) remove all trailing white space in one fell swoop 2) let everybody configure their editor to auto-remove trailing whitespace. And, we shall have peace. – Niels Bom – 2015-09-23T14:50:05.657
Of course all trailing spaces should be gone in the code. But I don't think it's a job for the editor. Not by default anyway - nobody touches my code without going through me. – lang2 – 2015-09-23T15:42:52.377
Seems not everyone agrees with your last sentiment: https://golang.org/cmd/gofmt/ :-)
– Niels Bom – 2015-09-25T10:24:23.413It's perfectly OK to have an auto formatting tool that does a good job. And I like the way that everybody's code look the same. But not by default without telling. Maybe I'm just old fashioned. :) – lang2 – 2015-09-25T15:56:06.687