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

xiaoronglv · March 17, 2014 · Last by appell replied at March 17, 2014 · 4058 hits

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。

You need to Sign in before reply, if you don't have an account, please Sign up first.