Skip to content
A tool which allows you to wrap selected text in Brackets.
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
package.json update version number Sep 19, 2014

Surround for Brackets

Simply select the text you wish to surround and press Ctrl - Shift - J or Cmd - Shift - J for Macs.


Installation can now be handled through the extension registry.

Step 1: Click file -> "Extension Manager"

You can now search for "Brackets Surround" and then click install.

For Older Versions

Step 1: Click file -> "Install Extension"

Paste in the following URL
Step 2: Restart brackets

Restart Brackets to see the new plugin. To verify the extension was loaded, click "Edit" and you should see a option called "Surround".

Easy to add new functionality

cases = {
   '('    :   ')',
   '{'    :   '}',
   '<'    :   '>',
   '['    :   ']',
   '/*'   :  '*/',
   '<!--' : '-->',
   '<%'   :  '%>',
   '<%='  :  '%>'

Simply add a new key/value to the cases and it will instantly close the key.

You can’t perform that action at this time.