-
-
Save Bartuz/addf3f206c3e80c6f96c to your computer and use it in GitHub Desktop.
This file contains 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
if has("autocmd") | |
" remove trailing white spaces | |
autocmd BufWritePre * :%s/\s\+$//e | |
endif |
This file contains 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
* Tools -> Options -> Editor -> On Save > Remove Trailing Whitespace From | |
* Select: All lines |
This file contains 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
Go to preferences / editor and check: | |
* Ensure line feed at file end on Save | |
* Strip trailing spaces on Save |
This file contains 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
// Trims white space added by auto_indent when moving the caret off the line. | |
"ensure_newline_at_eof_on_save": true, | |
"trim_automatic_white_space": true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment