vscode candidate key: tab && shift tab

Author

dd21

Published

January 8, 2023

Abstract

vscode use ↑↓↔︎ to choose the candidate item, that makes me so crazy. i want to candidate as vim: tab

Referance

texthttps://blog.csdn.net/juzipidemimi/article/details/106755117

fix the proublem

we need to config the keyboard shortcuts

config -> keyboard shortcuts –> append the following code block to keyboard shortcuts.json

{
       "key": "tab",
       "command": "selectnextsuggestion",
       "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
},
{
       "key": "shift+tab",
       "command": "selectPrevSuggestion",
       "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
}