Skip to content

Instantly share code, notes, and snippets.

@brunoadacosta
Last active October 2, 2017 21:21
Show Gist options
  • Save brunoadacosta/45d1e6c89ce1339fd4884e7023aa7ac7 to your computer and use it in GitHub Desktop.
Save brunoadacosta/45d1e6c89ce1339fd4884e7023aa7ac7 to your computer and use it in GitHub Desktop.
Remove trailing spaces
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