PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

Code Style. Python

Last modified: 26 August 2021

File | Settings | Editor | Code Style | Python for Windows and Linux

PyCharm | Preferences | Editor | Code Style | Python for macOS

Ctrl+Alt+S the Settings/Preferences icon

Use this page to configure formatting options for Python files. When you change these settings, the Preview pane shows how this will affect your code.

Imports



This table lists actions to be performed when imports are optimized.