Tab autocomplete in Visual Studio Code doesn't work

荒凉一梦 提交于 2021-02-07 12:01:00

问题


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?

With pressing "Tab", I will get this;

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


回答1:


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


来源:https://stackoverflow.com/questions/57841968/tab-autocomplete-in-visual-studio-code-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!