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

Reformat File dialog

Last modified: 11 February 2024

The dialog appears when you press in the editor of the current file. If you choose Code | Reformat Code from the main menu or press , PyCharm tries to reformat the source code of the specified scope automatically.

For more information about reformatting, or excluding files from formatting, refer to Reformat and rearrange code.