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.
You can now search for "Brackets Surround" and then click install.
Paste in the following URL
https://github.com/pedelman/brackets-surround
Restart Brackets to see the new plugin. To verify the extension was loaded, click "Edit" and you should see a option called "Surround".
cases = {
'(' : ')',
'{' : '}',
'<' : '>',
'[' : ']',
'/*' : '*/',
'<!--' : '-->',
'<%' : '%>',
'<%=' : '%>'
};
Simply add a new key/value to the cases and it will instantly close the key.