我试图找到一些在使用 sublime 时自动格式化 python 代码的包。
有 PythonTidy,但是当我使用 PackageController 时它说安装已完成但包未安装(未出现在首选项中)。
我确实尝试按照以下说明进行操作: https://github.com/witsch/SublimePythonTidy
当我在 python 中“pip 安装”包时,sublime 不会加载,抛出:
terminate called after throwing an instance of 'boost::python::error_already_set'
/usr/bin/subl: line 3: 12415 Aborted
/usr/lib/sublime-text-2/sublime_text --class=sublime-text-2 "$@"
如果没有 PackageController,我将如何安装它,或者,有人可以推荐另一个包吗?
最佳答案
ctrl+shift+P 然后包控制:安装包
寻找 Python PEP8 Autoformat
并安装它。
关于python - sublime 中的自动 python 代码格式化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11628338/