How to check the right or wrong code in vscode
This article mainly introduces how to check the right and wrong code in vscode. It is very detailed and has a certain reference value. Friends who are interested must read it!
Install the Pylint plug-in
Pylint is a library that checks for PEP 8 specification violations and common errors. It integrates well with several popular editors and IDE and can also be run from the command line.
Open a command prompt window and go to the C:\ Python34\ Scripts\ directory
Execute the pip install pylint command to install Pylint, then wait for the installation to complete.
Prompt for successful installation
Then open vscode to open the user settings file.
Add configuration "python.linting.pylintEnabled": true
The above is all the contents of the article "how to check the right or wrong code in vscode". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!