fir*_*dev 86 keyboard-shortcuts selection sublimetext atom-editor
是否有快捷方式或命令在Sublime Text或Atom中选择光标下的单词?我想要一个替换双击.所以我可以按快捷方式,然后选择当前单词并开始输入以替换它或获取引号等...
Bou*_*ode 147
commanddOSX上的+
control+ d在Windows/Linux上
您可以通过转到Preferences > Keybindings - Default
并仔细阅读列表来查找所有默认的键绑定.
Cod*_*ike 17
您可以添加键绑定以选择单词:
{ "keys": ["ctrl+shift+w"], "command": "expand_selection", "args": {"to": "word"} }
Run Code Online (Sandbox Code Playgroud)
与find_under_expand
命令(control+d
默认情况下)不同,重复按下不会在匹配的单词上添加游标.
如果要扩展选择,请安装ExpandRegion:
小智 5
我环顾四周,最终想出了这个,我分配给了ctrl-F
你需要将它粘贴到一个新的用户插件python文件中
import sublime, sublime_plugin
class find_under_cursor(sublime_plugin.WindowCommand):
def run(self):
view = self.window.active_view()
view.run_command("expand_selection", {"to": "word"})
view.run_command("slurp_find_string")
self.window.run_command("show_panel", {"panel": "find", "reverse": False} )
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
35536 次 |
最近记录: |