Last active
October 2, 2017 21:21
-
-
Save brunoadacosta/45d1e6c89ce1339fd4884e7023aa7ac7 to your computer and use it in GitHub Desktop.
Remove trailing spaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vim - Adicione as linhas abaixo no .vimrc | |
" Remove trailing spaces | |
autocmd FileType ruby,eruby,javascript,jst,go autocmd BufWritePre <buffer> :%s/\s\+$//e | |
SublimeText - Adicionar em File Settings -- User config | |
{ | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true, | |
"trim_trailing_white_space_on_save": true, | |
"ensure_newline_at_eof_on_save": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment