如何将 Intellisense 添加到 Visual Studio Code 以进行引导 [英] how to add Intellisense to Visual Studio Code for bootstrap

查看:28
本文介绍了如何将 Intellisense 添加到 Visual Studio Code 以进行引导的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想专门为 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆