解决vscode内html内css不提示,jquery代码不提示的问题

3,115 阅读1分钟

html内css无提示解决方法:

1、打开vscode的设置:

2、在用户设置中添加下面代码

"editor.parameterHints": true,
  "editor.quickSuggestions": {
    "other": true,
    "comments": true,
    "strings": true
  }

如图



jQuery无提示解决方法:

在项目根目录建一个 jsconfig.json

{
  "exclude": ["node_modules"],
  "typeAcquisition": {
    "include": [
      "jquery"
    ]
  }
}

效果