小編給大家分享一下vscode無法對js進行智能提示怎么辦,相信大部分人都還不怎么了解,因此分享這篇文章給大家參考一下,希望大家閱讀完這篇文章后大有收獲,下面讓我們一起去了解一下吧!
1、安裝typings。
npm install typings --global
2、項目下初始化typings。
typings init
3、項目下增加jsconfig.json。內(nèi)容如下:
{ // See /tupian/20230522/working-with-javascript#_javascript-projects-jsconfigjson // 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無法對js進行智能提示怎么辦”這篇文章的所有內(nèi)容,感謝各位的閱讀!相信大家都有了一定的了解,希望分享的內(nèi)容對大家有所幫助,如果還想學習更多知識,歡迎關(guān)注創(chuàng)新互聯(lián)行業(yè)資訊頻道!