DEV Community

황혜은
황혜은

Posted on

How to Show Packages as a Folder Hierarchy in Eclipse (Instead of Dotted Names)

When working in Eclipse, you might see packages displayed as a single dotted line like this:

src
 └ clazz.employeeinfo
Enter fullscreen mode Exit fullscreen mode

But sometimes, you may want to see the actual folder hierarchy instead:

src
 └ clazz
    └ employeeinfo
Enter fullscreen mode Exit fullscreen mode

Problem
By default, Package Explorer uses Flat Presentation, which merges sub-packages into a single dotted line.
This can make it harder to visualize the actual folder structure.

Solution

  1. Open Package Explorer.
  2. Click the view menu icon (⚙ or ▼) in the top-right corner.
  3. Select Package Presentation → Hierarchical.

Result
Now, packages will appear as a real folder hierarchy.

Flat mode: clazz.employeeinfo

Hierarchical mode: clazz → employeeinfo

Extra Tips
Nested Project: You can create a nested project if you want a project-inside-project structure.

Working Sets: Group multiple projects for better organization.

Top comments (0)