代码风格配置
PEP8 规范实施
[tool.black]
line-length = 88
include = '\.pyi?$'
[tool.isort]
profile = "black"
插件生态
快捷键规范
功能 | Windows/Linux | macOS |
---|---|---|
智能补全 | 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>
版本控制集成
- 开启 Settings → Version Control → Commit
- 勾选 “Optimize imports” 和 “Reformat code”
- 配置 GitHub 账户同步
相关文档
Last updated on