分享 Sublime Text Tips:自动移除行末空格

xiaoronglv · 2014年03月17日 · 最后由 appell 回复于 2014年03月17日 · 4058 次阅读

Trailing whitespace always makes noises in version control system, it is meaningless. We should remove trailing whitespace to avoid annoying other team members.

I can't remember how many times the trailing whitespace makes noises in my git commits, like

如何让 Sublime 自动去除行末的空格?

in Sublime Editor, change in setting:

"trim_trailing_white_space_on_save": true

Sublime Text will remove trailing whitespace on save.

Reference

http://rails-bestpractices.com/posts/60-remove-trailing-whitespace

没发现还有这个配置👍

还有个类似的 TrailingSpaces。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号