Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change package view in IntelliJ?

Tags:

How can I change the package view like:

with dot to:

withou dot

in IntelliJ 12.1.4?

like image 590
mnish Avatar asked Oct 02 '13 12:10

mnish


People also ask

How do I view packages in IntelliJ?

Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Package Search.

How can I change base package in IntelliJ?

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 ).

How do I get project view in IntelliJ?

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.


2 Answers

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.

like image 148
JB Nizet Avatar answered Sep 22 '22 08:09

JB Nizet


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.

IntelliJ IDEA 2017 none flatten packages

like image 23
Menuka Ishan Avatar answered Sep 23 '22 08:09

Menuka Ishan