Home>Article>Development Tools> vscode cannot perform smart prompts on js

vscode cannot perform smart prompts on js

王林
王林 Original
2020-03-14 14:08:41 6392browse

vscode cannot perform smart prompts on js

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn