Auto-Indent Closing Braces in Text Editor

In the text editor, it would be nice if there was an option to automatically match the indent level of a closing brace with its corresponding opening brace. In other words, when you type a closing brace on a new line, it should automatically snap back to the indent level of the most recent opening brace.