Select current block (scope)?

Hi,

how do I quickly select the current scope or bracketed block (sometimes known as "Balance")?

Example (with | being current cursor location):

if( (a = class.make( a, (b|+c) ) ) == x )

1st Balance would select "b+c"
2nd Balance would select " a, (b+c) "
3rd Balance would select "a = class.make( a, (b+c) ) "
4th Balance would select " (a = class.make( a, (b|+c) ) ) == x "

etc. until the outmost block is reached (probably the braces around the class definition).

What's IDEA's editor command for this? I haven't found it yet... :-/

Thanks, Christian.

3 comments
Comment actions Permalink

Hello Christian,

CR> how do I quickly select the current scope or bracketed block (sometimes known as "Balance")?

Ctrl+W (Select Word at Caret).

Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Thanks, that's it! (Would not have thought it from the name...)

Regards, Christian.

0
Comment actions Permalink

Hello Christian,

Thanks, that's it! (Would not have thought it from the name...)

Regards, Christian.


What name would you suggest to help clarify the feature?

David

0

Please sign in to leave a comment.