所以我尝试从这里安装 spyder-autopep8 插件:https://github.com/spyder-ide/spyder-autopep8
我下载并解压缩了它,然后按照说明运行 python setup.py install。 (这是在我的 ../.spyder-py3/plugins 文件夹中)
我的问题是如何在 Spyder 中使用它? README(上面的链接)中的说明说按 F8 或转到 Source > Run autopep8 code autoformatting。但是现在,我的默认 F8 键是 Source > Run static code analysis。
谢谢!!
请您参考如下方法:
只是偶然发现了同样的问题......
我通过首先通过 pip 安装新的 spyder 然后让它工作 通过以下方式直接从 git 存储库安装 autopep8:
pip install git+https://github.com/spyder-ide/spyder-autopep8.git
