There are several ways to close brackets, braces, etc. in BBEdit. You can also control how BBEdit uses them to complete different things in different languages.

BBEdit 13.0 and later have auto-pairing built in. You can control this behavior using the “Completion” preferences.

Another more manual way is simply to create a Clipping for the open character, which includes the close character, and then assign that Clipping to a modified version of the open character (or any other modified keystroke). You only have to do this once. For example, if you want to add a closing brace any time you open a brace, type the following into a new BBEdit document:


Highlight that text, right-click on it, and choose Save Selection As Clipping.

If you only want that Clipping to fire off when you’re using, say, CSS, then save it to the CSS.css Clipping file with a suitable name — say, “closebrace”.

If you want it to work in all file types, add it to Universal Items.

To assign the keystroke, go to Window->Palettes->Clippings, and choose the Set Shortcut option at the top right. Type a keystroke in there (a common one is control-[, which is simply replacing the shift for the control key). Now, whenever you type the Control key followed by [, you’ll get a brace.