Last Updated: February 25, 2016
·
9.754K
· milesmatthias

Sublime Select All in a Bracket

If you have code in a bracket you want to select, like this:

items: [{
   apples
},{
   juice
},{
   popcorn
}]

put your cursor on the first '[' and then press Shift - Command - m (on a Mac) and Sublime will select all of the text between the first '[' to its matching ']'.

3 Responses
Add your response

On Linux it's: ctrl+shift+m

over 1 year ago ·

Thanks, and [Ctrl + Shift + M] works on Windows, too.

over 1 year ago ·

On MAC: [Shift + Ctrl + M] or [Shift + Command + M]

It used to work with Command earlier and now, it works with Ctrl. I don't know why and how.

over 1 year ago ·