Home>Article>Development Tools> What should I do if vscode cannot use jq?

What should I do if vscode cannot use jq?

藏色散人
藏色散人 Original
2020-04-08 10:35:08 4191browse

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

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

E:\VsCodeTestApp>npm install -g typings

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

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

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

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!

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