Debian Stretch (9)
扩展名:https://github.com/Microsoft/vscode-python
关于VS代码:
Version: 1.32.3
Commit: a3db5be9b5c6ba46bb7555ec5d60178ecc2eaae4
Date: 2019-03-14T23:38:49.842Z
Electron: 3.1.6
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.9.0-8-amd64
hbarta@olive:~$ which autopep8
/usr/bin/autopep8
hbarta@olive:~$ 这个扩展报告说它找不到我通过Debian包管理器安装的autopep8。我不知道如何告诉扩展在哪里可以找到它。
谢谢!
发布于 2019-03-23 10:03:30
要告诉代码autopep8在哪里,请打开命令调色板(ctrl+alt+p),找到“首选项:打开设置(JSON)”,然后在括号({})之间添加以下行
"python.formatting.provider": "autopep8",
"python.formatting.autopep8Path": "/usr/bin/autopep8",然后关闭并重新启动代码。
https://stackoverflow.com/questions/55309903
复制相似问题