Python Visual Studio Code - 删除 pylint

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/40626429/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 23:45:08  来源:igfitidea点击:

Visual Studio Code - removing pylint

pythonvisual-studio-codevscode-settingspylint

提问by samuelsaumanchan

Simple question - but any steps on how to remove pylint from a Windows 10 machine with Python 3.5.2 installed.

简单的问题 - 但有关如何从安装了 Python 3.5.2 的 Windows 10 机器中删除 pylint 的任何步骤。

I got an old version of pylint installed that's spellchecking on old Python 2 semantics and it's bugging the heck out of me when the squigglies show up in Visual Studio Code.

我安装了一个旧版本的 pylint,它对旧的 Python 2 语义进行了拼写检查,当 Visual Studio Code 中出现波浪线时,它让我感到困惑。

回答by Mahmoud Ayman

open the workspace settings file (select File > Preferences > Settings, then locate Python configuration) and edit this line as

打开工作区设置文件(选择文件 > 首选项 > 设置,然后找到 Python 配置)并将这一行编辑为

"python.linting.pylintEnabled": false

“python.linting.pylintEnabled”:假

then save the file.

然后保存文件。

回答by Pramesh Bajracharya

If you just want to disable pylintthen the updated VSCode makes it much more easier.

如果您只想禁用,pylint那么更新后的 VSCode 会更容易。

Just hit CTRL + SHIFT + P > Select linter > Disabled Linter.

只需按CTRL + SHIFT + P > 选择 linter > 禁用 Linter。

Hope this helps future readers.

希望这对未来的读者有所帮助。

回答by Morfidon

The question was how to remove python linter, not how to disable it.

问题是如何删除 python linter,而不是如何禁用它。

In order to remove pylint open Powershell/cmd and type:

为了删除 pylint 打开 Powershell/cmd 并键入:

pip uninstall pylint