Move through Suggestions with Tab in VS Code

2021-04-02

Today I have been looking for a way to move through the suggestions that VS Code provides while typing using the TAB key. Here is how I set it up 😎

Simply put the following into the bottom of the keybindings.json file of your VS Code configuration. You can reach it by searching for Open Keyboard Shortcuts (JSON) into the command palette.

    {
        "key": "tab",
        "command": "selectNextQuickFix",
        "when": "editorFocus && quickFixWidgetVisible"
    },
    {
        "key": "shift+tab",
        "command": "selectPrevQuickFix",
        "when": "editorFocus && quickFixWidgetVisible"
    },
    {
        "key": "tab",
        "command": "selectNextSuggestion",
        "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
    },
    {
        "key": "shift+tab",
        "command": "selectPrevSuggestion",
        "when": "editorTextFocus && suggestWidgetMultipleSuggestions && suggestWidgetVisible"
    }

You might need to restart VS Code 😉

And that's it. You should be able to navigate through the suggestions that VS Code provides using the TAB key.