PyCharm 2018.2 Help

Navigating to Braces

Navigating to the borders of a code block

To navigate to the borders of a code block, do one of the following:

  • To navigate to the code block start, press Ctrl+[, with the caret anywhere inside the code block.

    In the Python code, the caret rests before the def keyword.

  • To navigate to the code block end, press Ctrl+], with the caret anywhere inside the code block.

    In the Python code, the caret rests after the end of code block.

  • To toggle between code block start or end, press Ctrl+Shift+M.

    You can also invoke this action (Move Caret to Matching Brace) with a Search Everywhere or Go to Action functionality:

    matching braces

Navigating to the borders of the closest higher code block

To navigate to the borders of the closest higher code block, do one of the following:

Last modified: 14 July 2018

See Also