Android Studio Tip #2 – Extract Instance Variable

You might need to “convert” a local variable into an instance variable. Well, you can do this very easy with Android Studio.

So, in order to extract an instance variable (field) you can do this by using the following shortcut:

CTRL + ALT + F (on Windows) or Cmd + ALT + F (on Mac OS)

extract field