用于工具的 Sublime Text 设置键绑定 >通天塔>巴别塔变换 [英] Sublime Text set key binding for Tools > Babel > Babel Transform
问题描述
我想在 Sublime Text 3 中为命令 Tools > 创建一个键绑定.巴别塔Babel 变换
.
I want to create a key binding in Sublime Text 3 for the command Tools > Babel > Babel Transform
.
我使用了菜单项 Preferences >Key Bindings
打开用户键盘映射,我添加了这一行:
I have used the menu item Preferences > Key Bindings
to open the user keymap, and I have added this line:
{ "keys": ["ctrl+shift+b"], "command": "babel_transform" },
但是,按 Ctrl-Shift-B 不起作用.如果我使用不同的命令(例如 "prompt_open_folder"
),键绑定词正确,所以我假设它是我出错的 "babel_transform"
命令.
However, pressing Ctrl-Shift-B has no effect. If I use a different command (such as "prompt_open_folder"
), the key binding words correctly, so I assume that it is the "babel_transform"
command which I have got wrong.
我应该如何正确编写此键盘映射行?
How should I write this keymap line correctly?
推荐答案
Babel Transform 的命令是 babel
因此,这将起作用:
The command for Babel Transform is babel
therefore, this will work:
{ "keys": ["ctrl+shift+b"], "command": "babel" }
找出命令的方法是:
打开控制台并打开命令记录:
sublime.log_commands(True)
然后工具>巴别塔巴别塔变换
输出将是:command: babel
这篇关于用于工具的 Sublime Text 设置键绑定 >通天塔>巴别塔变换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!