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
请先登录再写评论。
Yes, it is 'Select Word at Caret' action (Alt+Up/Down by default) - you can gradually expand the current selection according to language rules.
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
Yep, this is a bug: http://youtrack.jetbrains.com/issue/OC-4772.
We'll fix it shortly.