Home > Development Tools > VSCode > body text

What should I do if vscode cannot use jq?

藏色散人
Release: 2020-04-08 10:35:08
Original
4269 people have browsed it

What should I do if vscode cannot use jq?

What should I do if jq cannot be used with vscode? vs code adds smart prompts for jquery

What should I do if vscode cannot use jq?

Recommended related tutorials:vscode tutorial

1. Install node.js

2. Create a new VCodeTestApp folder, open this folder with vs code

3. Open cmd, enter the drive letter where the TestApp folder is located, and then cd to enter TestApp

C:\Users\Administrator>e:
E:\>cd VsCodeTestApp
Copy after login

4 , Install Typings through NPM (cmd enter the following command, the same below)

E:\VsCodeTestApp>npm install -g typings
Copy after login

5. Install relevant prompt information files (here, jquery is used as an example)

E:\VsCodeTestApp>typings install dt~jquery --global
Copy after login

Here is an explanation of what dt~ means. . dt~ refers to the prompt file for downloading jquery from DefinitelyTyped: jquery.d.ts. If you don't add dt~, the installation will not work. . I don’t know why

6. Delete the installed ts prompt file

E:\VsCodeTestApp>typings remove jquery --global
Copy after login

The smart prompt installation of other js frameworks is similar to this

The above is the detailed content of What should I do if vscode cannot use jq?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template