how to add Intellisense to Visual Studio Code for bootstrap

后端 未结 5 1615
走了就别回头了
走了就别回头了 2020-12-04 13:18

I\'d like to have intellisense for bootstrap specifically but even for the css styles I write in my project. I\'ve got references in a project.json and a bower.json but the

5条回答
  •  时光说笑
    2020-12-04 13:27

    In the latest version of VS Code the IntelliSense in comments and strings have been disabled by default. Below are the two options to bring back "24/7 IntelliSense" functionality or customize it to your own liking.

    First make sure you have installed the HTML CSS Support Extension mentioned by dwonisch above.

    Control + ',' to go to settings or click File -> Preferences -> Settings.

    Click workspace settings tab and enter the following JSON code:

    {
        "editor.quickSuggestions": {
            "comments": false, // <- no 24x7 IntelliSense in comments
            "strings": true, // but in strings and the other parts of source files
            "other": true
        }
    }
    

    The other option is to hit ctrl + space within the CSS quotes to activate the intelliSense. Example:

提交回复
热议问题