问题
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"?
回答1:
ctrl+u as per sublimetext.com/docs and tested by me.
ctrl+k, ctrl+d will skip the current selection.
回答2:
Also you can deselect anything while holding Alt
回答3:
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.
来源:https://stackoverflow.com/questions/12411850/sublimetext-unselect-last-incrementally-selected-element