George Mauer
George Mauer

Reputation: 122052

SublimeText - Unselect last incrementally selected element?

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"?

Upvotes: 29

Views: 5386

Answers (3)

Fellow Stranger
Fellow Stranger

Reputation: 34013

For Mac:

Skip last: cmd+u

Skip current: cmd+k, cmd+d

Unfortunately though, when the "selection loop" reaches bottom of document and starts from the top again - the functionality is lost.

Upvotes: 3

Nieralyte
Nieralyte

Reputation: 490

Also you can deselect anything while holding Alt

Upvotes: 4

Orin MacGregor
Orin MacGregor

Reputation: 707

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

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

Upvotes: 41

Related Questions