Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of installing nodejs Smart prompt in vscode

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to install nodejs Smart Tips in vscode. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

1. Install the typings package first. If you are using a Taobao image, enter cnpm. Cmd execution:

Cnpm i typings-g//cnpm install typings-global

2. Through the above command, the typings package is downloaded, and then we go to the project development directory, open the command window, and type:

Typings init

At this point, a typings.json file appears in the current directory, which is the configuration file of typing (the installed typings package), which is generally used by team development, similar to npm's package.json.

Then enter the following command under the change directory command window to install the js plug-in prompt file, as follows:

Typings install dt~node-global-save//typings install dt~jquery-global-save//typings install express-ambient-save

(- global: represents a global file, and some packages must add this parameter)

(- save: means to record the installation information to the typings.json mentioned above)

It is critical to create an empty jsconfig.json file in the current directory; when you are finished, restart VSCode to get a code hint.

You can refer to the following new file commands, such as:

1. Cd. > a.txt

Cd. Means that changing the current directory to the current directory means that there is no change, and there will be no output from this command.

> means to write the command output to a file. Followed by a.txt, it means writing to a.txt. In this case, the command has no output, so an empty file with no content is created.

2 、 copy nul a.txt

Nul represents an empty device, conceptually, it is invisible and exists in each directory, it can be regarded as a special "file", it has no content; generally, the output can be written to nul to achieve the purpose of masking the output, such as pause > nul, the execution effect of this command is paused and does not show "Please press any key to continue."

This example shows that an empty device is copied to a.txt, and an empty file with no content is also created.

3. Type nul > a.txt

This example shows the contents of an empty device and writes it to a.txt.

4. Echo a 2 > a.txt

"2" represents the handle to the error output, and in this case there is no error output, so an empty file with no content is created. In fact, > redirects handle 1, which is the standard output handle, by default. For example, cd. > a.txt is actually cd. 1 > a.txt.

Similarly, handles 3 through 9 can also be used in this example, which are undefined handles and have no output, such as echo a 3 > a.txt.

5. Fsutil file createnew d:\ a.txt 0

An empty file was created using fsutil.

6 、 copy con a.txt

Enter Ctrl+Z

Thank you for reading! This is the end of this article on "how to install nodejs Smart Tips in vscode". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report