问题描述
安装 Sublime Text 3 (Build 3059) 后,我尝试像过去一样配置一些键绑定.所以我在Preferences \ Key Bindings - User"中进行了配置:
[{ "keys": ["ctrl+space"], "command": "toggle_comment", "args": { "block": false } }]好吧,这根本行不通.当我将鼠标悬停在编辑 \ 评论 \ 切换评论"上时,我可以看到键绑定已注册,因为切换评论"文本旁边的键绑定显示为灰色.当我点击切换评论"菜单项时评论有效,但不能使用键绑定.
绑定 shift+space
时,注释按预期工作.那么,为什么 ctrl+space
不行呢?
所以,它与 ibus 有关.我可以按照以下步骤修复它:
$ sudo apt-get install dconf-editor
$ dconf-editor
- 转到
desktop\ibus\general\hotkey
- 将
triggers
的值从['space']
更改为[]
After installing Sublime Text 3 (Build 3059) I tried to configure some key bindings as I usually did in the past. So I configured this in "Preferences \ Key Bindings - User":
[
{ "keys": ["ctrl+space"], "command": "toggle_comment", "args": { "block": false } }
]
Well, this simply does not work. I can see the key binding is registered when I hover over to "Edit \ Comment \ Toggle Comment" as there is the key binding shown in grey right next to the "Toggle Comment" text. Commenting works when I click the Toggle Comment menu item, but not with the key binding.
When binding shift+space
commenting works as expected. So, why won't ctrl+space
do?
So, it had to do with ibus. I could fix it by following these steps:
$ sudo apt-get install dconf-editor
$ dconf-editor
- Go to
desktop \ ibus \ general \ hotkey
- Change the value for
triggers
from['<Control>space']
to[]
这篇关于ctrl+space 键绑定不适用于 Sublime Text 3 中的评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!