Pycharm
自己是有pep8
风格检测的,当你敲得代码中不符合规范时,会有下划波浪线提示。如何让代码修改成符合规范,去掉这些难看的波浪线呢?下面介绍步骤:html
cmd窗口输入:pip install autopep8
python
- Name:Autopep8(能够随便取) - Tools settings: - Programs:`autopep8` (前提是你已经安装了哦) - Parameters:`--in-place --aggressive --aggressive $FilePath$` - Working directory:`$ProjectFileDir$` - 点击Output Filters→添加,在对话框中的:Regular expression to match output中输入:`$FILE_PATH$\:$LINE$\:$COLUMN$\:.*`
博客连接:git