PyCharm 3.4.0 Web Help

The Smart Enter completion enables you to create syntactically correct code constructs.

Tip

PyCharm automatically completes a method declaration with the mandatory parameter self. Start typing a method declaration in a Python class, and PyCharm will insert self after the opening bracket of the parameters list:

python_self

To automatically complete a statement
  • Start typing a statement and press Ctrl+Shift+EnterCtrl+Shift+EnterCtrl+Shift+EnterCtrl+Shift+EnterCtrl+Shift+EnterCtrl+Shift+EnterCtrl+Shift+EnterCtrl+Shift+EnterShift Command EnterShift Command EnterShift Command Enter.

    py_completing_code_construct_1

    The punctuation required in the current context is added and the caret moves to the next editing position.

    py_completing_code_construct_2

See Also

Reference:

Web Resources: