VSCode无法识别较新的CSS [英] Newer CSS not recognized by VSCode

查看:109
本文介绍了VSCode无法识别较新的CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

VSCode会在无法识别的CSS下产生弯曲的行.例如:

VSCode will produce a squiggly line under CSS it does not recognize. For example:

justify-self: start;

无法识别网格线的命名. [col] 带来了问题.例如:

Naming grid lines is not recognized. The [col] gives it problems. For example:

 grid-template-columns:  repeat(6, [col] 150px);

我尝试安装许多不同的CSS扩展,以解决此问题,但是没有一个起作用.作为记录,我使用夜间版本的VSCode.

I've tried installing a number of different CSS extensions in an attempt to correct the issue but none of them have worked. For the record, I'm not using the nightly version of VSCode.

有什么建议吗?

推荐答案

如果不使用CSS验证属性,则可以更改 settings.json :

If you don't use css validation of properties you can change settings.json:

"css.lint.unknownProperties": "ignore"

这将不再突出显示:

justify-self: start;

AND不适用于所有剩余的未知属性:

AND won't work for all remaining unknown properties:

gibberish: wow;

这篇关于VSCode无法识别较新的CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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