Preferences - > Settings - User
"trim_trailing_white_space_on_save": true
Ctrl+s就会自动去除该文件代码全部的行尾空格
Sublime去除代码行尾多余的空格