[Python 1-2] visual studio code (vscode) configures Python development environment

Time:2021-7-15
Using vscode as ide tool to develop Python

IDE (integrated development environment), there are many ides supporting python. There are pychar, eclipse, atom, anaconda, sublime text and so on. Personally, I prefer to use Visual Studio code, which is vscode. If you have your favorite ide tools, enjoy them!
First address of the article

Installing Python extension tools in vscode

First of all, make sure our machine is installedPythonEnvironment, if not installed,You can refer to my other tutorial to install the python environmentThe steps are simple.
Then we open the installed vscode and find itExtensionsAnd click (or use the shortcut key)Ctrl+Shift+XTo open).
[Python 1-2] visual studio code (vscode) configures Python development environment
Enter in the input box that pops upPythonAnd search, the first result we directly clickInstallThat’s it.
[Python 1-2] visual studio code (vscode) configures Python development environment
Wait for the end of install, and it will be installed.

Test whether the installation is successful

We created a new one calledhello_world.pyWrite the following line of code

print("hello world!")

Then click on theGreen triangle buttonRun, see the console outputhello world!On behalf of our successful installation!
[Python 1-2] visual studio code (vscode) configures Python development environment

Video tutorial

https://www.bilibili.com/vide…


[Python 1-2] visual studio code (vscode) configures Python development environment