2

当我使用 Sublime Text 2 通过 FTP 打开某些文件时,例如 .css 或 .php 文件,ST2 在每行之后添加一个额外的换行符。结果是大量不必要的空白使文件难以再次扫描和清理。

有人可以指导我如何将首选项设置为在打开文件时不添加额外换行符的位置吗?

非常感激。

4

1 回答 1

5

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,
于 2013-02-13T18:50:16.337 回答