Issue
What is the shortcut in Android Studio for "Create a method on instance"? For example, say I have an instance of MyClass
but not yet have myMethod
:
instance.myMethod();
In Eclipse I can auto-generate myMethod
. How can someone do this in Android Studio? I have a Mac.
Solution
Select function name and give below command:
For Windows:
alt
+ enter
For MacOs:
command
+ enter
you will have option to create.
Answered By - KDeogharkar
Answer Checked By - Timothy Miller (JavaFixing Admin)