Sublime text 2 在编辑时添加和删除空行
Sublime text 2 adds and removes blank lines on edit
我正在使用 Sublime Text 2,它很棒。
我用它来写html、css和ruby。
我在编辑规范文件时遇到问题,因为它会在整个文件中添加和删除空行并使 git 日志不可读。
您的编辑器似乎配置为删除尾随空格,而团队中的其他开发人员未使用该设置。反之亦然。他们删除了空格,而你没有。
因此我建议在整个团队中使用相同的设置。
要启用或禁用该功能,请转至 SublimeText 2 > Preferences > User Settings
并添加
"trim_trailing_white_space_on_save": true
或
"trim_trailing_white_space_on_save": false
到配置
我正在使用 Sublime Text 2,它很棒。
我用它来写html、css和ruby。
我在编辑规范文件时遇到问题,因为它会在整个文件中添加和删除空行并使 git 日志不可读。
您的编辑器似乎配置为删除尾随空格,而团队中的其他开发人员未使用该设置。反之亦然。他们删除了空格,而你没有。
因此我建议在整个团队中使用相同的设置。
要启用或禁用该功能,请转至 SublimeText 2 > Preferences > User Settings
并添加
"trim_trailing_white_space_on_save": true
或
"trim_trailing_white_space_on_save": false
到配置