我收到消息了
There is no document formatter for 'python'-files installed.
当我尝试在 Visual Studio Code
上格式化我的 Python
文件时。
我尝试安装一些包(autopep8、pep8、pycodestyle
),但没有帮助。怎么回事?
最佳答案
您很可能将 autopep8
安装到与您在 VS Code 中选择的不同的解释器/环境中。如果您从 settings.json
中删除格式化程序设置,然后再次尝试格式化,系统将提示您选择并安装格式化程序(autopep8
、yapf
,或 black
)。
关于python - 我无法在 Visual Studio Code : "There is no document formatter for ' python'-files installed. 上格式化 Python 文件”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54953381/