RubyMine 2016.3 Help

Navigating to Braces

In this section:

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+Open Bracket, with the caret anywhere inside the code block.

    The caret rests next to the def keyword.

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

    The caret rests before the end keyword.

  • 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:

    /help/img/idea/2016.3/matching_braces.png

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:

See Also

Last modified: 7 December 2016