In Eclipse when I press Ctrl + 1 on a method parameter it gives me an option to assign that parameter to a field of the same type.
In following example, after pressing Ctrl + 1 Eclipse would suggest assigning methodParameter to the mClassField.
private class Aclass {
private RandomType mClassField;
public Aclass(RandomType methodParameter){
}
}
Is there a shortcut for this in Android Studio, please?
There is only an option to Create Field for Parameter 'xxx' after pressing Alt + Enter which is not what I want. I'd like to assign the parameter to an existing field.