Skip to Content

代码风格配置

PEP8 规范实施

[tool.black] line-length = 88 include = '\.pyi?$' [tool.isort] profile = "black"

插件生态

快捷键规范

功能Windows/LinuxmacOS
智能补全Ctrl+Shift+Space⌃⇧Space
代码格式化Ctrl+Alt+L⌥⌘L

调试模板

<configuration name="dev_server" type="PythonConfigurationType"> <module name="project" /> <option name="INTERPRETER_OPTIONS" value="" /> <option name="PARENT_ENVS" value="true" /> </configuration>

版本控制集成

  1. 开启 Settings → Version Control → Commit
  2. 勾选 “Optimize imports” 和 “Reformat code”
  3. 配置 GitHub 账户同步

相关文档

Last updated on