vscode无法对js进行智能提示


本文摘自PHP中文网,作者V,侵删。

1、安装typings。

1

npm install typings --global

2、项目下初始化typings。

1

typings init

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

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

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

{

 // 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、安装想要的提示。

1

2

typings install dt~node --global --save

typings install express --ambient --save

相关教程推荐:vscode教程

以上就是vscode无法对js进行智能提示的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

vsCode怎么设置代码补全

windows下用vsCode调试php7源代码

离线启动vsCode的方法

vsCode怎么设置vue别名路径智能提示?

vsCode 怎么删除文件

vsCode中如果配置中文界面(汉化)

vsCode中tab键失效了怎么办

怎么卸载vsCode后删除所有配置

vsCode粘贴代码不缩进的设置

怎么使用vsCode写lua脚本

更多相关阅读请进入《vsCode》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...