Select Objective-C Expression

Given the code:

 
 [_member setResourceURL:[membershipInfo objectForKey:@"location"]];

 


I would like to place the cursor on, say, the '@' and hit one keystroke and have AppCode select the entire expression

[membershipInfo objectForKey:@"location"]
hitting the keystroke again should expand the selection one-level further out, following the Objective-C message nesting rules. And so on.
Is this possible now? I've searched the menu and keymap as best I can and not seen such a feature.
Kind regards,
Matt
3 comments
Comment actions Permalink

Yes, it is 'Select Word at Caret' action (Alt+Up/Down by default) - you can gradually expand the current selection according to language rules.

0
Comment actions Permalink

Hi Anton.

Okay, unfortunately it's not if you're using the Xcode keymap. Looking in the menu it tells me that should be Cmd+Opt+W but that, actually, closes the project I have open (yes I made sure I was using the Opt key as well).

Regards,

Matt

0
Comment actions Permalink

Yep, this is a bug: http://youtrack.jetbrains.com/issue/OC-4772.
We'll fix it shortly.

0

Please sign in to leave a comment.