visual-studio-codeeditor

Tab autocomplete in Visual Studio Code doesn't work


I am trying to enable tab auto-completion with pressing "Tab" button but it doesn't work for me and it always works as Tab character when it is supposed to work as autocomplete. Which setting or shortcut should I enable or disable to have this feature?

Tab Auto-completion 1

With pressing "Tab", I will get this;

Tab Autocomplete 2

PS: Pressing "Enter" works fine and accepts the suggestion and I can disable it by setting the following setting to off.

enter image description here


Solution

  • Try changing tab completion setting to On:

    Editor › tab Completion

    "editor.tabCompletion": "on"
    

    Also for HTML/Javascript you could make emmet setting to true

    "emmet.triggerExpansionOnTab": true