How can I change the package view like:
to:
in IntelliJ 12.1.4?
Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Package Search.
Rename a package In the Project tool window, click Project and select Packages from the list. IntelliJ IDEA lists all the packages in your project. Right-click the package you want to rename and from the context menu, select Refactor | Rename ( Shift+F6 ).
To open the tool window again (and restore the associated features), use the main menu: View | Tool Windows | <Window Name> or press Alt+1 . Hide the tool window. This command opens the description of the Project tool window in the IntelliJ IDEA online help.
Click on the gear icon at the top right on the package view, and make sure that "Flatten Packages" and "Compact empty middle packages" are unchecked.
This screen shot taken from IntelliJ IDEA 2017. Most of the time the answer will be same on every Intellij IDE. As JB mentioned this should solve your problem. This screen shot will help a beginner find it easily.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With