1. Install typings.
npm install typings --global
2. Initialize typings under the project.
typings init
(Recommended learning: java video tutorial)
3. Add jsconfig.json under the project. The content is as follows:
{ // 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. Install the desired prompts.
typings install dt~node --global --save typings install express --ambient --save
Recommended related tutorials: vscode tutorial
The above is the detailed content of vscode cannot perform smart prompts on js. For more information, please follow other related articles on the PHP Chinese website!