RubyMine 6.3.0 Web Help

In the Editor, you can configure the editor's behavior related to the paired braces. When the option Insert pair } is enabled, the closing brace is automatically added with indent on pressing EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter. Indentation level is defined in the Code Style settings.

To configure insertion of paired elements
  1. Open the IDE Settings, and under the Editor node, click Smart Keys.

    editorSettings.png

  2. Configure automatic insertion of paired elements by selecting the following check boxes:
    • Insert pair bracket
    • Insert pair quote
    • Automatically insert closing tag
  3. To have the closing braces inserted upon pressing EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter, select the Insert pair } check box.

See Also

Reference:

Web Resources: