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

How to install and use the Python plug-in in VSCode

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Editor to share with you how to install and use the Python plug-in in VSCode, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The Python plug-in under Visual Studio Code uses

1. Install python3.7 (download and install python-3.7.5-amd64 on the official website), select Add path during installation, and execute python by cmd command after installation. You can see the python version, which means that the installation is successful and the path is added normally.

two。 Download VSCodeUserSetup-x64-1.46.0 on the official website, complete the installation, click Open, search python in the application area, and click install.

After the installation is complete:

3. Install Chinese plug-ins:

Turn it back on after closing: the interface displays Chinese

4. Open a file path:

Click to add the file directly and write the suffix .py of the file.

Since Vscode is not an application for python like pycharm, the newly created file will not always have its own suffix, so it is recommended to write it manually.

There is also a way to set the file type, which can be set to the py file by default.

5. Run file: double-click F5 to get the run result:

6. A prompt appears in the lower right corner:

Select install installation

7. Code automatic formatting tool yapf:

Alt + Shift + F, the first time you will be prompted to install yapf in the lower right corner, click yes or install

Then use Alt + Shift + F

A code that is originally connected to a line that has no blank line to automatically wrap or segment:

These are all the contents of the article "how to install and use Python plug-ins in VSCode". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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