57

How does one who is using IntelliJ or Android Studio extract a public static inner class to create a new top level class?

Thank you.

helsont
  • 4,347
  • 4
  • 23
  • 28
  • Excuse the wordiness. The question was too short initially. Basically: How do I extract a public static inner class to create a new top level class in IntelliJ? – helsont Aug 31 '15 at 17:34

1 Answers1

111

Select the class name.

Refactor > Move or press F6

Select "Move inner class Foo to upper level"

jtomaszk
  • 9,223
  • 2
  • 28
  • 40
Carl Manaster
  • 39,912
  • 17
  • 102
  • 155