在 Sublime text 3 中设置 Python 开发环境时,我想要自动格式化,因此我在 Preferences > Package settings > Anaconda > Settings User 中进行了以下设置
{
"auto_formatting": true,
"autoformat_ignore":
[
],
"pep8_ignore":
[
"E501"
],
"anaconda_linter_underlines": false,
"anaconda_linter_mark_style": "none",
"display_signatures": false,
"disable_anaconda_completion": true,
"python_interpreter": "/usr/local/bin/python3"
}
auto_formatting 值在用户设置中设置为 true,在默认设置中设置为 false。自动格式化不起作用并给我 Autoformatting failed, buffer not changed错误。还尝试更改auto_formatting_timeout = 5 //seconds ,但没有成功。如果有人可以帮助我,那将是非常有帮助的。