问题
I'm using Sublime Text 3 on OSX.
Using cmd + D, I want to select the next instance of es
but not if it's part of another word
Given this code
I select the first instance of es
and see this
Perfect! However, when I tap cmd + D a couple times, it will end up selecting this
Super annoying!
How can I make cmd + D only select the highlighted sections that appear in image 2?
回答1:
If you select whole word and press Cmd + d it is going to select like in 3rd image. If you put your cursor (caret) on the word but not select it and then press Cmd + d it is going to select like in 2nd image.
For Windows just change Cmd + d to Ctrl + d
回答2:
It works as in image 2 by default, at least for me. Do you have the following key mapping?
{ "keys": ["ctrl+d"], "command": "find_under_expand"},...
You could also try reverting to a freshly installed state.
来源:https://stackoverflow.com/questions/17776999/boundary-sensitive-cmdd-in-sublime-text