Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Sharp tools for VS code for python development

Shulou Source: shulou.com Published: 2022-06-03 05:51:38 11月12日 Update

Retweet + like = support

Introduction

Recently, in sorting out the contents of the python automated testing course, I found that the Microsoft vs code editor is too powerful, very easy to use, and light weight do not want, I hereby record that friends with choice entanglement are highly recommended to use ta.

PS: compatible with win10 and high resolution screen, I am moved to cry ~ ~

download

Go and see for yourself. It's very simple. Address: https://code.visualstudio.com/Download.

The installation is exe, which is very easy. I can't help it if it won't.

Configuration

After the installation is completed, you need to make the following configurations:

1. Install the python plugin, as shown in the figure

2. Install the vscode-icons plug-in in the same way as above. This is the icon displayed for the categorized file type.

3. Menu File > preferences > Settings, find "python.pythonPath": "python" on the left, and copy to the right parenthesis, change the value python to the actual python path on your computer. My configuration is as follows

4. Write any py file, and then press f5 twice to execute. The first time you press f5 to debug, you can debug step by step, and the debugging information is displayed on the left. Press f5 the second time to execute the rest. If you want to press f5 to execute all at once, you need to change the "stopOnEntry": true in launch.json to "stopOnEntry": false.

Tags: File configuration plug-in information content resolution method right icon address actual that is screen introduction parentheses method friends computer look for the first time Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Xiaomi Microsoft Shulou Technology Linux