iori
iori

Reputation: 3506

How to delete everything to the right of selected text in Sublime Text 3 ?

I am not sure if this possible. I am just checking to see if it is.

Is there a way to delete everything to the right of whatever I select in Sublime Text ?

enter image description here

Upvotes: 3

Views: 3869

Answers (2)

Jeff Favret
Jeff Favret

Reputation: 45

As Mauricio stated, after using + D to add multiple cursors, + K (twice) should do it. This will delete anything to the right of the cursor. To delete to the left of the cursor, select + K, followed by + .

Upvotes: 2

mauricio
mauricio

Reputation: 153

When you select "//" using Command + D adding a cursor to each element found (like you did) you can use Command + Shift + Arrow Right to select the text between the cursor and the end of the line then you can delete the selected text.

Upvotes: 4

Related Questions