[英]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?我无法从 python:select 的 VS 代码中启用 pylint 启用 linter 的对话框没有出现怎么办? can someone help me?
有人能帮我吗?
Press Ctrl+,按Ctrl+,
It will open up vscode settings, there you can search for "Pylint enabled" and tick the checkbox to enable it.它将打开 vscode 设置,您可以在那里搜索“Pylint enabled”并勾选复选框以启用它。
Note: if pylint is not installed, it will ask if it can install it.注意:如果没有安装pylint,它会询问是否可以安装。 Allow that.
允许。
For using Python's code analysis tool "Pylint" in VS Code, please refer to the following:在 VS Code 中使用 Python 的代码分析工具“Pylint”,请参考以下内容:
1.Please install "pylint" in the python environment currently used by VS Code.( pip install pylint
) 1.请在VS Code当前使用的python环境下安装“pylint”(
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
" ) (请注意,VS Code 终端使用的 python 与 VS Code 左下角显示的相同。检查 python:“
python --version
”)
2.Then use the following settings in " settings.json ": 2.然后在“ settings.json ”中使用以下设置:
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
Reference: Linting Python in Visual Studio Code .参考: Linting Python 在 Visual Studio Code中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.