如何将 Intellisense 添加到 Visual Studio Code 以进行引导 [英] how to add Intellisense to Visual Studio Code for bootstrap
问题描述
我想专门为 bootstrap 设置智能感知,但即使对于我在项目中编写的 css 样式也是如此.我在 project.json 和 bower.json 中有引用,但他们似乎没有提供引用.
您可以安装
本地文件不需要配置任何东西,安装后关闭并重新打开vscode即可.对于远程css文件,可以添加以下内容
"css.remoteStyleSheets": [https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"]
在settings.json
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 they do not seem to be making the references available.
You can install HTML CSS Support Extension.
ext install vscode-html-css
This will add Intellisense in your HTML files:
You don't need to configure anything for local files, just close and reopen vscode after installing. For remote css files, you can add the following
"css.remoteStyleSheets": [
"https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css"
]
in the settings.json
这篇关于如何将 Intellisense 添加到 Visual Studio Code 以进行引导的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!