Boundary sensitive Cmd+D in Sublime Text

柔情痞子 提交于 2019-12-22 20:01:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!