JSX or HTML autocompletion in Visual Studio Code

前端 未结 16 1177
说谎
说谎 2020-12-12 10:14

Is there any way to use components or HTML completion in Visual Studio Code? Because typing each letter manually is not good idea when we have classes like Bootstrap etc. Fo

16条回答
  •  执笔经年
    2020-12-12 11:14

    Only work in JSX files. Let it not work with JS.

    "files.associations": {
    "*.js": "javascript",
    "*.jsx": "javascriptreact",
    },
    "emmet.triggerExpansionOnTab": true,
    "emmet.includeLanguages": {
        "javascriptreact": "javascriptreact"
    },
    

提交回复
热议问题