Plug-in Installation:
- Install Pylint (pylint is a Python Code analysis tool that parses errors in Python code to find code style standards that are not compliant (Pylint the code style used by default is PEP 8, specific information, see resources) and potentially problematic code)
- Automatically format code by pressing ALT+SHIFT+F in Vscode after installing YAPF
Open command Line
Enter "Pip Install YAPF"
After the installation of YAPF is successful, open Vscode, file, preferences, user settings, enter "Python.formatting.provider" in the Settings.json file: "Yapf"
A few tips:
View the definition of a function or class
CTRL + left mouse click on the function name or class name to jump to the definition, the function name or the class name by pressing F12 can also achieve the same function
Change variable name
Rename a variable by pressing F2 on the variable name
Python breakpoint debugging
Click on the left side of the line number to set breakpoints, and on the left side of the debug screen you can see the variable changes
Developing Python with Vscode