1.查看vscode 里插件是否安装vetur,如果没有插件库里搜索vetur,点击install按钮,显示uninstall就说明安装好了;

vscode vue 里的less代码识别不了

2.如果还是识别不了less代码,在file-->Preferences-->Settings 找到vetur 拉倒最下面点击Edit in settings.json

vscode vue 里的less代码识别不了

添加一行代码:

"files.associations": { "*.vue": "vue" }

保存就ok了。

相关文章:

  • 2022-02-16
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-02
相关资源
相似解决方案