IntelliJ IDEA equivalent of Eclipse "Link with Editor"

EclipseEditorIntellij Idea

Eclipse Problem Overview


In Eclipse you can check the "Link with Editor" option and whatever source file you are viewing in the current tab will be highlighted and have its package expanded in the Package Explorer view.

Is there something equivalent to this in IntelliJ IDEA 8.1?

Eclipse Solutions


Solution 1 - Eclipse

At IntelliJ IDEA 12 (13, 14 and 15 from comments), it is located at the gear icon into the "Project" Tool Window, called as our mate said, Autoscroll from source

check the image

enter image description here

I hope this can helps someone else :)

Solution 2 - Eclipse

Update (2020, eleven years later): see "Source code navigation / Locate a file in the Project tool window"

> In the Project tool window, right-click the Project toolbar and, from the context menu, select Always Select Opened File.
> > After that IntelliJ IDEA will track the file that is currently opened in the active editor tab and locate it in the Project tool window automatically.

https://www.jetbrains.com/help/img/idea/2019.3/project_view_context_menu.png


Original answer (2009)

That would be autoscrollFromSource.png : Autoscroll from Source.

Navigate from a file in the Editor that gets the focus, to the corresponding node in the Project Tool Window.

alt text

Fried Hoeben comments that

> you get there from the config of the project tool window.
It is not present in the general IDE settings (at least in version 12)

Solution 3 - Eclipse

In version 2016.3, it's a little icon on the Project Tool Window called Scroll from Source. It's the first icon on the right see screen shot

Solution 4 - Eclipse

Right click on the Project Title bar (Project view). Then select the Option "Autoscroll from Resource".

Solution 5 - Eclipse

In Intellij 2019.3 community editor, it is to right-click on the Project view and check the item "Always select opened file.

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
QuestionKevin HerronView Question on Stackoverflow
Solution 1 - EclipseVielinkoView Answer on Stackoverflow
Solution 2 - EclipseVonCView Answer on Stackoverflow
Solution 3 - EclipseTamasView Answer on Stackoverflow
Solution 4 - EclipseRV.View Answer on Stackoverflow
Solution 5 - EclipseThomas MathewView Answer on Stackoverflow