I am using vscodevim
extension with Visual Studio Code.
I would love to use hjkl
keys as arrow keys in contextual menus, specially for the intellisense
.
Any idea how to enable this option?
If vscodevim
extension does not support this feature, which shortcut can be used to move the cursor within the contextual menu without touching the arrow keys?
答案 0 :(得分:0)
尝试
{
"key": "h",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
}
和
{
"key": "l",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
}
或您要使用的任何键。这些键绑定将遍历智能感知建议。
答案 1 :(得分:0)
将以下内容添加到您的VSCode keybindings.json
文件中:
{
"key": "ctrl+k",
"command": "selectPrevSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
{
"key": "ctrl+j",
"command": "selectNextSuggestion",
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
},
在上面的评论中,贷方@GibboK对此问题的回答link。
答案 2 :(得分:0)