What is the IntelliJ equivalent from Eclipse, show file in the package explorer view

EclipseIntellij Idea

Eclipse Problem Overview


I am more familiar in Eclipse and need the IntelliJ equivalent. In Eclipse, I could open a java class, right click, show file in package explorer and it would highlight the file on the left. What is the IntelliJ equivalent.

Eclipse Solutions


Solution 1 - Eclipse

You can highlight a file you have open in the editor in a number of views using the Select In...menu that can be opened using ALT-F1 when the editor window has the cursor.

The most usual ones (Project/Packages) are found under the menu opened by ALT-F1 and then right arrow.

Solution 2 - Eclipse

You can also double click the circle/cross button ontop of the Project view

it will show you the current active file in the project structure

enter image description here

Solution 3 - Eclipse

You can turn on Autoscroll from source in Project Tool Window so that the file/class to the left is scrolled to as soon as you open a file for edit.

> If this option is on, IntelliJ IDEA automatically navigates from a file in the editor to the corresponding node (file, class, field, method, etc.) in the Project tool window. Note that selecting this option makes the Scroll to Source button unavailable.

Solution 4 - Eclipse

It is called "select in project view".

You'd better edit your keymap ! (alt+F1 right arrow is not very efficient...)

> file > settings > keymap > select in project view : alt+E for example

Solution 5 - Eclipse

You can press Alt-Home, it goes to the navigation bar.

Go to or select the package by pressing left arrow.

Press F4 now to see it in the project view.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionBerlin BrownView Question on Stackoverflow
Solution 1 - EclipseJoachim IsakssonView Answer on Stackoverflow
Solution 2 - EclipseRobert GleisView Answer on Stackoverflow
Solution 3 - EclipsemabaView Answer on Stackoverflow
Solution 4 - EclipseFundhorView Answer on Stackoverflow
Solution 5 - EclipseKrishnaView Answer on Stackoverflow