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!

2022年了,该学会用VSCode debug了!下面本篇文章手把手带大家会习VSCode debug,希望对大家有所帮助!

本篇是VSCode配置文章,手把手教大家怎么在VSCode中配置使用 Geant4 和 Root,希望对大家有所帮助!

本篇文章扒拉一下vscode Prettier的选项,总结分享16个让你的代码变漂亮的属性,希望对大家有所帮助!

“工欲善其事,必先利其器!”,vscode作为前端开发的重要工具,其插件能大幅提升战斗力,精心收集12个插件,总有几款你还未曾拥有。

VSCode中如何开发uni-app?下面本篇文章给大家分享一下VSCode中开发uni-app的教程,这可能是最好、最详细的教程了。快来看看!

VScode中怎么开发置C/C++?怎么配置C/C++环境?下面本篇文章给大家分享一下Windows系统下VScode配置C/C++环境图文教程,希望对大家有所帮助!


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Linux new version
SublimeText3 Linux latest version

Notepad++7.3.1
Easy-to-use and free code editor

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

Dreamweaver CS6
Visual web development tools
