Sublime Text 更改“转到行..."快捷方式 [英] Sublime Text change 'Goto Line...' shortcut
问题描述
(这个问题是专门针对 Mac 的,但如果你愿意,你可以启发 Windows 用户!)
Goto Line..."的命令是什么来更改快捷方式,因为Goto Definition..."如下所示:
<预><代码>[{ "keys": ["cmd+D"], "command": "goto_definition" }]打开控制台(Ctrl`),输入
sublime.log_commands(True)
保持控制台打开,选择Goto ->Goto Line...
或按组合键CtrlG,出现以下内容:
command: show_overlay {"overlay": "goto", "text": ":"}
因此,键盘映射定义为:
{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto",文本": ":"} }
您可以在用户键绑定中将 "ctrl+g"
更改为您想要的任何内容.
(This question is specifically for the Mac, but you may enlighten Windows users if you want!)
What is the command for 'Goto Line...' to change the shortcut as it's down for 'Goto Definition...' like below:
[
{ "keys": ["cmd+D"], "command": "goto_definition" }
]
You can find out what command is being executed by opening the console (Ctrl`) and entering
sublime.log_commands(True)
Keeping the console open, select Goto -> Goto Line...
or hit the key combo CtrlG, and the following appears:
command: show_overlay {"overlay": "goto", "text": ":"}
Therefore, the keymap definition would be:
{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }
You can change the "ctrl+g"
to whatever you want in your user key bindings.
这篇关于Sublime Text 更改“转到行..."快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!