17
votes

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

1
Don't know if this helps, but you can press CTRL+SPACE to bring up autocomplete. - Peter Warrington
@PeterWarrington I know how to bring up suggestions. My question is about using that suggestion with pressing of tab button - Reza
Oh I see, Sorry, Don't know how to help with that :-q. - Peter Warrington

1 Answers

18
votes

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