Sublime Text 更改“Goto Line...”快捷方式

2024-03-25

(这个问题是专门针对Mac的,但如果你愿意的话,你可以启发Windows用户!)

“Goto Line...”的命令是什么,用于更改“Goto Definition...”的快捷方式,如下所示:

[
    { "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": ":"}

因此,键映射定义为:

{ "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }

您可以更改"ctrl+g"到您想要的用户键绑定中的任何内容。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Sublime Text 更改“Goto Line...”快捷方式 的相关文章

随机推荐