vscode cannot perform smart prompts on js

王林
Release: 2020-03-14 14:08:41
Original
6380 people have browsed it

vscode cannot perform smart prompts on js

1. Install typings.

npm install typings --global
Copy after login

2. Initialize typings under the project.

typings init
Copy after login

(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" ] }
Copy after login

4. Install the desired prompts.

typings install dt~node --global --save typings install express --ambient --save
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!