Mukul Sharma
Mukul Sharma

Reputation: 11

how to enable linter pylint enable in vs code when Python: Select linter>>pylint

I am not able to enable pylint in VS code from python:select linter the dialogue box to enable linter doesn't appear what to do? can someone help me ?

Upvotes: 0

Views: 5707

Answers (2)

Jill Cheng
Jill Cheng

Reputation: 10372

For using Python's code analysis tool "Pylint" in VS Code, please refer to the following:

1.Please install "pylint" in the python environment currently used by VS Code.(pip install pylint)

(Please note that the python used in the VS Code terminal is the same as the one displayed in the lower left corner of VS Code. check python: "python --version" )

2.Then use the following settings in "settings.json":

"python.linting.enabled": true,
"python.linting.pylintEnabled": true, 

enter image description here

Reference: Linting Python in Visual Studio Code.

Upvotes: 0

Tushar Sadhwani
Tushar Sadhwani

Reputation: 565

Press Ctrl+,

It will open up vscode settings, there you can search for "Pylint enabled" and tick the checkbox to enable it.

Pylint enabled checkbox

Note: if pylint is not installed, it will ask if it can install it. Allow that.

Upvotes: 2

Related Questions