Search code examples
javaintellij-ideapackageintellij-14

How to safe-move package intellij?


I have my current project structure like this.

|--daos
|  |
|  |--readers

And I want to move whole readers packages like this.

|--daos
|  
|--dbs
   |
   |--readers

How can I do this safely without breaking usages using intellij?


Solution

  • You can right click on the package and choose Refactor, then move your package from there. It will confirm what you want to do, and make the necessary changes for you.