Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 569
Berlin Brown Avatar asked May 17 '13 16:05

Berlin Brown


People also ask

How do I show package explorer in IntelliJ?

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.

How do I make my Eclipse look like IntelliJ?

In Eclipse, go to Window->Preferences, and select General->Appearance. You can change the font in there. I don't know what IntelliJ uses, but you can probably look it up in IntelliJ, and just match it.

What is Eclipse Package Explorer?

The Package Explorer view, shown by default in the Java perspective, shows the Java element hierarchy of the Java projects in your workbench. It provides you with a Java-specific view of the resources shown in the Navigator. The element hierarchy is derived from the project's build paths.

How do I import an Eclipse project into IntelliJ?

You can import either an Eclipse workspace or a single Eclipse project. To do this, click Open on the Welcome Screen or select File | Open in the main menu. IntelliJ IDEA automatically detects Eclipse projects located on your computer and places them in the dedicated node right on the Welcome screen.

How is IntelliJ IDEA different from Eclipse?

The way IntelliJ IDEA compiles projects is different from Eclipse in a number of ways. By default, IntelliJ IDEA doesn't automatically compile projects on saving because normally we don't invoke the save action explicitly in IntelliJ IDEA.

How to find package explorer in Java Eclipse project?

How to find package explorer in Java eclipse project? To view the project explorer, click on Window menu then, click on Show View and select Project Explorer. There is simpler way to open project explorer, when you are in the editor press alt + shift + w and select project explorer.

Does IntelliJ IDEA automatically compile projects on saving?

By default, IntelliJ IDEA doesn't automatically compile projects on saving because normally we don't invoke the save action explicitly in IntelliJ IDEA. If you want to mimic the Eclipse behavior, you can invoke the Build Project action Ctrl+F9 - it will save the changed files and compile them.


4 Answers

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.

like image 173
Joachim Isaksson Avatar answered Oct 22 '22 13:10

Joachim Isaksson


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

like image 37
Robert Gleis Avatar answered Oct 22 '22 13:10

Robert Gleis


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.

like image 27
maba Avatar answered Oct 22 '22 14:10

maba


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

like image 24
Fundhor Avatar answered Oct 22 '22 15:10

Fundhor