+7
trim_trailing_white_space_on_save should not remove up to the current cursor position
Pressing 'Save' compulsively is pretty common for devs so having the current line you are editing being mangled by Save is pretty annoying. So my suggestion is, when pressing save do not trim the current line up to the cursor. For instance, pretend this is the user typing:
function name
|
Where '|' is the cursor, now I've indented my cursor ready to do some hard core stuff and decide to press save then 'WHAM' I've lost my indent.
I currently have trim_trailing_white_space_on_save set to false because of this and would love to turn it back on.
Note: This is also an issue with ensure_newline_at_eof_on_save which I would also like to set to true if it did not move my cursor.
Thanks and Kudos on an awesome product that made me happy to purchase.
Servicio de atención al cliente por UserEcho
you can do it by setting "trailing_spaces_include_current_line" to false
Is it already there in ST2 or ST3 ? /or Yet to implement?
It is already there in ST2. Dont know about ST3.
My version - 2.0.1, Build 2217