How to Automatically Add Closing Brackets and Parentheses in Word
Question details
The user wants to know how to enable automatic closing of brackets, parentheses, and braces in Microsoft Word, similar to the functionality found in modern code editors.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Typing standard text or documenting code snippets where paired punctuation is frequently used and manually typing the closing character slows down the workflow.
- Observed behavior
- Word does not automatically insert a closing bracket or parenthesis when an opening one is typed, requiring the user to manually enter both characters.
Understand that word processors are designed for general prose rather than structured code, meaning they lack native auto-closing syntax features. However, you can set up custom shortcuts to achieve a similar automated result.
Use AutoCorrect as a Workaround
Create a custom AutoCorrect rule that automatically inserts a pair of brackets when you type a specific text trigger.
Since Word cannot predict where a sentence ends, setting up an AutoCorrect trigger allows you to instantly generate both the opening and closing brackets, saving you keystrokes.
Open Microsoft Word and navigate to File > Options. In the Word Options dialog box, select 'Proofing' from the left-hand menu.
Click on the 'AutoCorrect Options...' button to open the configuration window for automatic text replacements.
In the 'Replace' text box, type a unique trigger you wouldn't normally use in a sentence (for example, type '((' or 'brc').
In the 'With' text box, type the paired characters (for example, '()', '{}', or '[]'). Click 'Add', then click 'OK' to save the settings.
Return to your document and type your trigger followed by the spacebar. The pair will appear, and you can simply press the left arrow key to position your cursor between the brackets to continue typing.
Use Code Formatting Add-ins or Dedicated Editors
If you are writing or documenting source code, use specialized add-ins or dedicated code editors instead of standard word processing features.
Try WPS Office for a Seamless, Customizable Writing Experience
If you are looking for a lightweight, highly compatible, and free alternative to Microsoft Word, WPS Office is an excellent choice. It offers a familiar interface, robust AutoCorrect features to help you set up custom bracket shortcuts, and seamless compatibility with all your existing Word documents.
- 1. Download and Install: Download WPS Office from the official website and install it on your device.
- 2. Configure AutoCorrect: Open WPS Writer, navigate to Menu > Options > Edit, and customize your AutoCorrect settings to automatically create bracket pairs.
- 3. Enjoy Seamless Typing: Use your customized shortcuts to type faster while maintaining perfect compatibility with Microsoft Office files.

Frequently Asked Questions
Why doesn't Word auto-close parentheses like a code editor?
Word is designed for natural language and prose where sentence structures vary greatly. Unlike programming languages with strict syntax rules, Word cannot accurately predict where a closing parenthesis or bracket should naturally fall in a sentence without making incorrect guesses.
Can I use macros to auto-close brackets in Word?
Yes, advanced users can write a VBA macro that intercepts keystrokes to insert a closing bracket and immediately move the cursor back one space. However, this requires enabling developer tools, writing custom VBA code, and ensuring macros are enabled for the document.
How do I find mismatched brackets in my Word document?
You can use Word's built-in Grammar and Spelling checker. While it doesn't auto-close brackets, the grammar tool can often detect unmatched opening or closing parentheses in standard text and flag them for manual review.




