首頁  >  文章  >  開發工具  >  vscode無法對js進行智慧提示

vscode無法對js進行智慧提示

王林
王林原創
2020-03-14 14:08:416403瀏覽

vscode無法對js進行智慧提示

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中文網其他相關文章!

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn