Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 270
Reza Avatar asked Sep 08 '19 12:09

Reza


People also ask

How do I enable tab completion in VS Code?

By default, tab completion is disabled. Use the editor.tabCompletion setting to enable it.

Why does Tab not work in VS Code?

To fix the issuePressing ctrl + M causes the ⇥ Tab key to move focus instead of inserting a ⇥ Tab character. Turn it off by pressing the shortcut again.

How do I enable autocomplete in Visual Studio?

The suggestion list of Automatic completion appears as soon as you start typing a new identifier. The suggestion list of Basic completion appears when you press the default Visual Studio IntelliSense shortcut Ctrl+Space .


1 Answers

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
like image 71
Vinoth A Avatar answered Sep 17 '22 07:09

Vinoth A