简体   繁体   中英

How do I enable linting for Python on VSCode?

I tried command+shift+P already and clicked on Enable. 在此处输入图像描述

But it still doesn't work. I tried turning it on and off. I can't seem to get it to work.

To use linting in VS Code, please refer to the following:

(Take Pylint as an example:)

  1. Please install "pylint" in the currently selected python environment in VS Code: pip install pylint

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

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

use:

在此处输入图像描述

Reference: Linting in VS Code .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM