Sublime Forum

Invert the lines I have a cursor in

#1

Let’s say I have a file with 5 lines of stuff. I then put a cursor on lines 2 and 4. I’m looking for a keyboard shortcut that will remove the cursor from lines 2 and 4 and put one on every other line, so 1, 3, 5.

I already have a shortcut for inverting the selection but I’m looking for a way to just invert the lines in which I have a cursor on. Perhaps to place the cursor at the beginning of every inverted line.

Thanks.

0 Likes

#2

I suggest selecting full lines using ctrl+l and then inverting the selection - or if you’re looking to delete ctrl+x, ctrl+a, ctrl+v.

0 Likes