工具的崇高文本设置键绑定>通天塔巴别变换 [英] Sublime Text set key binding for Tools > Babel > Babel Transform

查看:48
本文介绍了工具的崇高文本设置键绑定>通天塔巴别变换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Sublime Text 3中为命令Tools > Babel > Babel Transform创建一个按键绑定.

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" }

找出命令的方式是:

  1. 打开控制台并打开命令记录: sublime.log_commands(True)

  1. Open console and turn on logging of commands: sublime.log_commands(True)

然后是Tools > Babel > Babel Transform

输出将是:command: babel

这篇关于工具的崇高文本设置键绑定>通天塔巴别变换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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