Visual Studio代码,带有WSL的Python衬里(Linux的Windows子系统)

巴托托普

我在64位PC上使用Windows 10。最近,我开始在Windows上将VS Code与Ubuntu Bash一起使用。除了棉绒,一切都很好。我试图让它与pylint和pep8一起使用,但是它们都不起作用。我认为问题是由于棉短绒的位置引起的。但是,我不知道如何解决该问题。您可以检查我的pylint设置:

// Whether to lint Python files using pylint.
"python.linting.pylintEnabled": true,

// Severity of Pylint message type 'Convention/C'.
"python.linting.pylintCategorySeverity.convention": "Information",

// Severity of Pylint message type 'Refactor/R'.
"python.linting.pylintCategorySeverity.refactor": "Hint",

// Severity of Pylint message type 'Warning/W'.
"python.linting.pylintCategorySeverity.warning": "Warning",

// Severity of Pylint message type 'Error/E'.
"python.linting.pylintCategorySeverity.error": "Error",

// Severity of Pylint message type 'Fatal/F'.
"python.linting.pylintCategorySeverity.fatal": "Error",

// Path to Pylint, you can use a custom version of pylint by modifying this 
// setting to include the full path.
"python.linting.pylintPath": "pylint",

// Arguments passed in. Each argument is a separate item in the array.
"python.linting.pylintArgs": [],

我将不胜感激任何帮助。谢谢...

山姆·布拉德利

我切换回Windows后一直在为此苦苦挣扎,发现了这一点:https : //github.com/Microsoft/vscode-python/issues/67

这是涵盖此确切场景的未解决问题,注释中存在一些hacks和变通办法,但是由于它现在是一个可见的且高度优先的问题,所以真正的解决方案是等待vs代码修复。

另外,您也可以使用以下指南在WSL环境中安装VS Code:https : //nickjanetakis.com/blog/using-wsl-and-mobaxterm-to-create-a-linux-dev-environment-on-windows

这将运行Linux版本的VS代码,因此使用那里安装的环境将不起作用。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章