当我使用Sublime Text 2通过FTP打开某些文件时,例如.css或.php文件,ST2会在每行后面添加一个额外的换行符。结果是产生了大量不必要的空白,使文件难以再次扫描和清理。
有人能告诉我如何在打开文件时将首选项设置为不添加额外换行符的位置吗?
非常感谢。
转到Settings - Default
并找到此选项-
// Set to true to ensure the last line of the file ends in a newline
// character when saving
"ensure_newline_at_eof_on_save": false,