Sublime Forum

Delete whitespace to right of cursor

#1

A common thing I’d like to do but haven’t been able to figure out how. If I have a multi-line column selection is to delete the whitespace to the right. It’s easier to show in this picture. I’m brand new to ST2 so maybe this is obvious. I’ve looked at some plugins by they seem more focused on lining up equal sign and such.

0 Likes

#2

One easy way is to use option+shift+arrow. In your case I would press left once, then option+shift+right, then left again (to deselect the comma) then delete.

0 Likes

#3

Delete Word Forward command for your need too, the cmd located in menu Edit | Text | Delete Word Forward, and the default keyboard shortcut is Ctrl + Delete on windows

0 Likes

#4

That works perfectly. Thank you both!!!

0 Likes