Complete paired characters
PyCharm can automatically add closing braces and other paired elements.
Press CtrlAlt0S to open settings and then select Editor | General | Smart Keys.
Select the Insert pair '}' checkbox in the Enter group. This enables adding closing braces when you press Enter.
Configure automatic insertion of other paired elements by selecting these checkboxes:
Insert pair brackets (), [], {}, <>
Insert pair quote
Expand Smart Keys and select the HTML/CSS page. On this page, enable:
Auto-close tag on typing '</'
Click OK to apply changes.
The indentation level is defined in the Code Style settings.
Thanks for your feedback!
Was this page helpful?