Home>Article>Development Tools> 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
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!