Home  >  Article  >  Development Tools  >  How to check the correctness of the code in vscode

How to check the correctness of the code in vscode

王林
王林Original
2020-02-13 14:23:189679browse

How to check the correctness of the code in vscode

Install Pylint plugin

Pylint is a library that checks for PEP 8 specification violations and common errors. It integrates well with several popular editors and IDEs and can also be run from the command line.

Open the command prompt window, go to the C:\Python34\Scripts\ directory,

How to check the correctness of the code in vscode

Execute the pip install pylint command Install Pylint and wait for the installation to complete.

How to check the correctness of the code in vscode

Successful installation prompt

How to check the correctness of the code in vscode

Open vscode to open the user settings file.

How to check the correctness of the code in vscode

Add configuration"python.linting.pylintEnabled":true,

How to check the correctness of the code in vscode

##Related recommendations :

vscode tutorial

The above is the detailed content of How to check the correctness of the code in 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