Sublime Text 更改“转到行..."快捷方式 [英] Sublime Text change 'Goto Line...' shortcut

查看:45
本文介绍了Sublime Text 更改“转到行..."快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(这个问题是专门针对 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆