PyCharm 2018.3 Help

Generating code

PyCharm provides multiple ways to generate common code constructs and recurring elements, which helps you increase productivity. These can be either predefined or custom templates, which are applied differently based on the context, various wrappers and automatic pairing of characters. Additionally, PyCharm provides code completion and Emmet support.

On the main menu, select Code | Generate (Alt+Insert) to open the popup menu with available constructs that you can generate.

Last modified: 27 February 2019