code-guide icon indicating copy to clipboard operation
code-guide copied to clipboard

Add reason for new lines at end of files

Open GreenImp opened this issue 11 years ago • 1 comments

Under 'Editor Preferences', there is the suggestion to "Add new line at end of files." I'd not really come across this idea before (although seen it in many files and Terminal systems) and wasn't quite sure of the reason. After doing some research, the best example of a positive reason to do it was here: http://evanhahn.com/newline-necessary-at-the-end-of-javascript-files/

It might be good to add a link to an explanation of why you would want to do this, in the guide.

GreenImp avatar May 02 '14 15:05 GreenImp

This has to do with a system distinguishing between text files (containing "lines") and binary files (which typically don't contain "lines").

More here: http://markmail.org/message/5jsn4epq7ad3vyvt

zatkin avatar Jun 16 '14 15:06 zatkin