Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeText - Unselect last incrementally selected element?

Tags:

I recently discovered the insanely useful ctrl+D functionality in sublime text. With a careful eye, it's almost as functional for things like renaming as far more sophisticated refactoring tools.

One thing bothers me. As I ctrl+D through my selections, sometimes I've selected 10 items and overshoot by one (eg. into another method). Is there a way to reverse direction and "deselect the last selected item"?

like image 381
George Mauer Avatar asked Sep 13 '12 17:09

George Mauer


People also ask

What does Ctrl d do in Sublime Text?

Ctrl + D in SublimeText is "Quick Add Next." This appears to be equivalent to Ctrl + B in Brackets, which is "Add next match to Selection" on the Find menu.

How do I select all occurrences in Sublime Text?

Two handy ways to use find to work with the selection: Ctrl+F3 to find the next occurrence of the current word or selected text. Alt+F3 to find all occurrences of the current word or selected text.

How do I get multiple cursors in Sublime Text?

While you can place multiple text cursors in Sublime Text with Cmd–Click (Mac) or Ctrl–Click (Windows), here's another technique that comes in handy. Hold Ctrl–Shift (Mac) or Ctrl–Alt (Windows) and hit Up or Down Arrow to place an additional text cursor above or below the current cursor.


2 Answers

ctrl+u as per sublimetext.com/docs and tested by me.

ctrl+k, ctrl+d will skip the current selection.

like image 166
Orin MacGregor Avatar answered Sep 25 '22 10:09

Orin MacGregor


Also you can deselect anything while holding Alt

like image 27
Nieralyte Avatar answered Sep 24 '22 10:09

Nieralyte