Home  >  Article  >  Backend Development  >  How to write python program with vscode

How to write python program with vscode

silencement
silencementOriginal
2019-05-21 18:14:2511258browse

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

How to write python program with 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. .

How to write python program with vscode

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:

How to write python program with vscode

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn