<html><head><link rel="canonical" href="https://www.jetbrains.com/help/idea/completing-punctuation.html.md/" data-react-helmet="true"/></head><body># Complete paired characters

IntelliJ&nbsp;IDEA can automatically add closing braces and other paired elements.

Procedure:

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))  to open settings and then select `Editor | General | Smart Keys`.

2. Configure the preferred options (all of them are enabled by default):

* Insert paired brackets (), [], {}, &lt;&gt;

* Insert pair quote

* Insert pair %&gt; on Enter in JSP

* Insert pair '}' (in the Enter group). If enabled, IntelliJ&nbsp;IDEA will automatically add a closing brace once you press Enter.

* Under the HTML/CSS node: * Insert closing tag on tag completion * Auto-close tag on typing '<!--/'

3. Click OK to apply changes.

The indentation level is defined in the [Code Style settings](settings-code-style.html).

--></body></html>