Fully change package name including company domain

后端 未结 16 2505
礼貌的吻别
礼貌的吻别 2020-12-13 01:11

Let\'s suppose this is the package name: package com.company.name. How do I change company?

P.S. I saw how to change name but

16条回答
  •  北荒
    北荒 (楼主)
    2020-12-13 02:07

    I found another solution for renaming a package in the entire project:

    Open a file in the package. IntelliJ displays the breadcrumbs of the file, above the opened file. On the package you want renamed: Right click > Refactor > Rename. This renames the package/directory throughout the entire project.

提交回复
热议问题