Home > Article > Backend Development > How to write python program with vscode
vscode, the full name is Visual Studio Code. It is a powerful third-party editor. Today, let’s talk about how to write python programs with vscode.
First, download and install vscode. Download address: https://code.visualstudio.com/
Build the environment
Search for the extension Python in VSCode
Basic Operation
Start your first Python code in VSCode. The Pylint function that comes with the Python plug-in will give you automatic prompts, automatic completion, and error prompts during your input process. .
I need to remind all PythonERs that in VSCode, including VS, Tabs are 4 spaces by default.
Several commonly used operation shortcut keys, it is estimated that VSers can convert them:
The first is the F1/Ctrl Shit P universal key
Ctrl P: file switching
Ctrl Space: Automatic prompt
F12/Ctrl Left click: Jump to definition
Shift F12: Preview definition
Ctrl G: Jump to line number
Ctrl /: Comment switching
Alt ↑↓: Move the entire line up and down
Ctrl ↑↓: The editor vertical scroll bar moves up and down, the cursor does not move
Preview definition map:
The above is the detailed content of How to write python program with vscode. For more information, please follow other related articles on the PHP Chinese website!