Select code in brackets or parenthesis


#1

Is there a way to get ctrl+shift+m from sublime into atom? ctrl+m toggles between the start and end of a bracket or parenthesis. I would love to be able to select everything inside the brackets with the addition of shift.


#2

Sounds like a good idea for a package.


#3

Bracket-matcher already does this.
There’s the command bracket-matcher:select-inside-brackets

It does however have a peculiar key binding:

Use ctrl-cmd-m to select all the text inside the current bracket


#4

Ah thanks I like it. I guess for windows its ctrl+alt+m.


#5

One thing I would like to mention is that this does not work with multiple selections. But there is an issue for it on github. https://github.com/atom/bracket-matcher/issues/192