自定义键上的Sublime Text2自动完成功能 [英] Sublime Text2 autocomplete on custom keys
本文介绍了自定义键上的Sublime Text2自动完成功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以在自定义键(不是Ctrl + Space)上调用自动完成功能吗?
Can auto-complete be invoked on custom keys(not Ctrl+Space)?
推荐答案
是的,请阅读文档中有关键绑定的内容: http://docs.sublimetext.info/en/latest/customization/key_bindings.html
Yes, read about keybindings in the documentation: http://docs.sublimetext.info/en/latest/customization/key_bindings.html
您需要将这些复制到您的用户键盘绑定并进行更改:
You'll need to copy these to your User keybindings and alter them:
{ "keys": ["ctrl+space"], "command": "auto_complete" },
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
这篇关于自定义键上的Sublime Text2自动完成功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文