5 ms·
Sublime does keyboard macros that make my life easier which VSC and its add-on don't have. Now if Sublime had a option to delete trailing whitespace every time
by protomyth 10y ago
Sublime does keyboard macros that make my life easier which VSC and its add-on don't have. Now if Sublime had a option to delete trailing whitespace every time I hit return, I could return to my PFE days of macro productivity.
When I start doing coding and text manipulation again, it looks like it will be Sublime I purchase.
- castis 10y agoI use the editorconfig plugin at work. You have an .editorconfig file at the base of your projects and everyones text editor gets the same settings on a per-project basis. One of the default settings is to trim excess whitespaces.
- jrimbault 10y agoSublime has the settings: `trim_trailing_white_space_on_save` and `ensure_newline_at_eof_on_save`, I found these very satisfactory. But there's almost certainly a ST extension for your particular taste.
- protomyth 10y agoI actually want it to trigger on each line when hitting return. It really helps with macros you can write when text munging. I didn't spend as much time as I would have liked looking at each editor but a command-key that deletes all ending whitspace on a line would also be acceptable.
- jrimbault 10y agoFor vim you can bind: `:%s/\s/+$//e` I usually have ST and vim open at the same time myself.