PyCharm 2024.1 Help

Smart Keys settings: Python

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

Item

Description

Smart indent pasted lines

With this option selected (by default), PyCharm 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), PyCharm 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), PyCharm adds self to the method declaration.

Insert 'self' when defining a method

Insert type placeholders in the documentation comment stub.

With this option selected, PyCharm 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: 10 April 2024