Rename package in Android Studio

后端 未结 30 1905
深忆病人
深忆病人 2020-11-21 05:21

How do you rename packages in the new IDE Android Studio, based on IntelliJ IDEA?

Is there an automatic refactoring included?

I want to make bulk refactorin

30条回答
  •  执笔经年
    2020-11-21 05:45

    1. Goto your AndroidManifest.xml file.
    2. Place your cursor in the package name like shown below. Don't select it, just place it.

    3. Then press Shift + F6 you will get a popup window as shown below select Rename package.

    4. Enter your new name and select Refactor. (Note since my cursor is on "something", only something is renamed.)

    That's it done.

提交回复
热议问题