vscode无法对js进行智能提示

2020-10-31,,

/2020/10/725dbfbc.jpg

1、安装typings。

npm install typings --global

2、项目下初始化typings。

typings init

(推荐学习:java视频教程)

3、项目下增加jsconfig.json。内容如下:

{
 // See https://go.microsoft.com/fwlink/?LinkId=759670
 // for the documentation about the jsconfig.json format
 "compilerOptions": {
 "target": "es5",
 "module": "commonjs",
 "allowSyntheticDefaultImports": true
 },
 "exclude": [
 "node_modules",
 "bower_components",
 "jspm_packages",
 "tmp",
 "temp"
 ]
}

4、安装想要的提示。

typings install dt~node --global --save
typings install express --ambient --save

相关教程推荐:vscode教程

以上就是vscode无法对js进行智能提示的详细内容,更多请关注北冥有鱼其它相关文章!

本文转载自【PHP中文网】,希望能给您带来帮助,苟日新、日日新、又日新,生命不息,学习不止。

《vscode无法对js进行智能提示.doc》

下载本文的Word格式文档,以方便收藏与打印。