RubyMine 7.0.0 Web Help

The Go to braces command helps you jump to the borders of the current code block. With the command, you can also quickly navigate to the borders of the higher code blocks.

To navigate to the borders of a code block, do one of the following:
  • To navigate to the code block start, press Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket or Ctrl+AAlt Command Open BracketCommand Open BracketAlt Command Open BracketControl Open Bracket or Control A, 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 BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PCtrl+Close Bracket or Ctrl+EAlt Command Close BracketCommand Close BracketControl Close Bracket or Control Shift PControl Close Bracket or Control E, with the caret anywhere inside the code block.

    The caret rests before the end keyword.

  • 5.0+
    To toggle between code block start or end, invoke the action Move Caret to Matched Brace. This action has no default keyboard shortcut, and can be found by Ctrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+Shift+ACtrl+ICtrl+Shift+AShift+Meta+AShift Command AShift Command ACommand 3Shift Command A.
To navigate to the borders of the closest higher code block, do one of the following:
  • To jump to the higher code block start, press Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket or Ctrl+AAlt Command Open BracketCommand Open BracketAlt Command Open BracketControl Open Bracket or Control A, with the caret at the current code block opening brace.
  • To jump to the higher code block end, press Ctrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PCtrl+Close Bracket or Ctrl+EAlt Command Close BracketCommand Close BracketControl Close Bracket or Control Shift PControl Close Bracket or Control E, with the caret at the current code block closing brace.

Tip

Practically, you can just press Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket or Ctrl+AAlt Command Open BracketCommand Open BracketAlt Command Open BracketControl Open Bracket or Control A or Ctrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PCtrl+Close Bracket or Ctrl+EAlt Command Close BracketCommand Close BracketControl Close Bracket or Control Shift PControl Close Bracket or Control E as many times as you need, until the caret is positioned at the start or end of the desired code block.

See Also

Reference:

Getting Started:

Web Resources: