Intellij Extract Inner Class

Android StudioIntellij IdeaRefactoringInner Classes

Android Studio Problem Overview


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.

Android Studio Solutions


Solution 1 - Android Studio

Select the class name.

Refactor > Move or press F6

Select "Move inner class Foo to upper level"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionhelsontView Question on Stackoverflow
Solution 1 - Android StudioCarl ManasterView Answer on Stackoverflow