Rename package in Android Studio

后端 未结 30 1920
深忆病人
深忆病人 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:56

    1. Select option

    2. Uncheck the Compact Empty Middle Packages option.

    3. Select which directory you want to change(I have selected 'crl' shown in step 6).
    4. Shift+F6
    5. Rename Package
    6. Renaming directory crl to crl1

    7. Finally click on Do Refactor button marked in image below enter code here

    8. After Changes done

提交回复
热议问题