IntelliJ IDEA 2023.3 Help

Smart Keys settings: Python

Use this settings page to configure typing assistance features in Python.

For more information about Python support in IntelliJ IDEA, see Python.

Item

Description

Smart indent pasted lines

With this option selected (by default), IntelliJ IDEA respects the PEP8 indent when you insert a code fragment.

Smart indent pasted lines

Use parentheses instead of backslashes for breaking lines

With this option selected (by default), IntelliJ IDEA wraps the current expression in parentheses to keep integrity of the statement when you press Enter and split it.

Wrap the expression in parentheses when pressing Enter inside a statement

Insert 'self' when defining a method

With this option selected (by default), IntelliJ IDEA adds self to the method declaration.

Insert 'self' when defining a method

Insert type placeholders in the documentation comment stub.

With this option selected, IntelliJ IDEA creates a placeholder to enter the type in the documentation comments. The placeholder is added for all docstring formats but Plain.

Insert type placeholders in the documentation comment stub
Last modified: 11 February 2024