cyf95w
Last Updated: February 25, 2016
·
6.289K
· 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

3955

On Linux it's: ctrl+shift+m

over 1 year ago ·
11520

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

over 1 year ago ·
14537

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 ·