I can't figure out the shortcut combination to use in this scenario. I am using AppCode with IdeaVim plugin.
How do I make appcode automatically assign my expression to a variable? For example, I have written:
[self getString]
which returns an NSString *.
Is there a hotkey I can press which will make this statement be assigned to the right kind of variable? So, something like:
NSString * newVariable = [self getString];
I think this is possible in Eclipse+java.
Use
Refactor
|Extract
| Variable. See also the related answer. Keyboard shortcut for this refactoring can be changed inPreferences
|Keymap
. Default shortcut is Alt+Cmd+V.