0x00
📝记录一下
0x01
使用 vscode 编写 python 代码的时候肯定是需要格式化的,于是安装了 autopep8 插件。
如何配置参数呢,在 .vscode/settings.json
中加入
{
"python.formatting.autopep8Args": [
"--ignore", "E402,E501"
]
}
E402 - Fix module level import not at top of file
E501 - Try to make lines fit within --max-line-length characters.
具体的参数参考 https://github.com/hhatto/autopep8#features
配置完成之后 ctrl
+ shift
+ f
就可以格式化代码啦😁
0x02
封面出处:http://simpledesktops.com/browse/desktops/2014/jun/03/bee-easy/