File and Code Templates

Last modified: 11 March 2021

File | Settings | Editor | File and Code Templates for Windows and Linux

PyCharm | Preferences | Editor | File and Code Templates for macOS

Ctrl+Alt+S the Settings/Preferences icon

PyCharm creates files using file templates as described in File templates. Use this page to view, edit, and create such templates.

Different groups of templates are located on different tabs.

When you select a template, its contents and description are displayed in the right-hand part of the page.