WebStorm 9.0.2 Web Help

Completing Punctuation

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 Enter. Indentation level is defined in the Code Style settings.

To configure insertion of paired elements

  1. Open Settings dialog, and under the Editor node, click Smart Keys.
  2. Configure automatic insertion of paired elements by selecting the following check boxes:
    • Insert pair bracket
    • Insert pair quote
    • Auto-close tag on typing '</'
  3. To have the closing braces inserted upon pressing Enter, select the Insert pair } check box.
  4. Apply changes and click OK.

See Also

Last modified: 11 December 2014
comments powered by Disqus