+3

Shortcut to delete CamelCaseSubWords

Matteo Nardi 6 years ago 0

Since "Alt+Arrow" moves by word inside CamelCaseWords, I would expect "Alt+Delete/Backspace" to delete subwords as well.


Expected behavior: (* is the cursor)

"ThisIsALongAnd*ComplicatedWord"

Alt+Backspace -> "ThisIsALong*ComplicatedWord"


"ThisIsALongAnd*ComplicatedWord"

Alt+Delete -> "ThisIsALongAnd*Word"


(I'm running SublimeText2 on Linux, I would expect the shortcuts to be different on other platforms)


As a workaround I added a macro and a shortcut to do that.