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.
Please sign in to leave a comment.
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!"
Thanks, that's it! (Would not have thought it from the name...)
Regards, Christian.
Hello Christian,
What name would you suggest to help clarify the feature?
David