优秀网站psd,公司网站建设情况报告,网络推广培训策划,公司查名网站说明
如果正常按照配置进行的话#xff0c;理论上是可以生效的。
[python]: {editor.defaultFormatter: ms-python.black-formatter,editor.formatOnSave: true
}但我在一种情况下发现不能生效#xff0c;应为其本身的bug…说明
如果正常按照配置进行的话理论上是可以生效的。
[python]: {editor.defaultFormatter: ms-python.black-formatter,editor.formatOnSave: true
}但我在一种情况下发现不能生效应为其本身的bug。
问题复现
在Windows的Python虚拟环境中如果Interpreter使用虚拟环境则Black Formatter不会生效。 Interpreter可点击VSCode的右下角进行选择。
解决方案
将Interpreter改为非虚拟环境的即可。 可以开发的时候选一个非虚拟环境的Interpreter运行和安装pip包的时候切换到虚拟环境。