在Sublime中浏览没有箭头的自动完成结果

时间:2015-03-25 13:09:47

标签: sublimetext2 sublimetext3

我正在使用Sublime Text 3,我试图不使用箭头。但是我似乎无法滚动自动完成的不同结果或没有箭头的Ctrl + P.

有什么建议吗?谢谢!

1 个答案:

答案 0 :(得分:5)

你可能想要在你的keymaps文件中使用这样的东西:

// navigation with tab in autocomplete popup
{ "keys": ["tab"], "command": "move", "args": {"by": "lines", "forward": true}, "context": [{ "key": "auto_complete_visible" }] },
{ "keys": ["shift+tab"], "command": "move", "args": {"by": "lines", "forward": false}, "context": [{ "key": "auto_complete_visible" }] },

// navigation with tab in overlay
{ "keys": ["tab"], "command": "move", "args": {"by": "lines", "forward": true}, "context": [{ "key": "overlay_visible", "operator": "equal", "operand": true } ] },
{ "keys": ["shift+tab"], "command": "move", "args": {"by": "lines", "forward": false}, "context": [{ "key": "overlay_visible", "operator": "equal", "operand": true } ] },