Reputation: 1788
In Eclipse, one can choose a File in Editor, right click and hight-light the file in Project Explorer. That will expand the tree, and one can see the file highlighted. I'm wondering how one can accomplish the same in Intellij IDEA.
Upvotes: 3
Views: 1883
Reputation: 4490
It's a very easy to do.
Go to the setting of the explorer and click on setting (three dots) -> Click the option as highlighted (Always Select Opened File)
That is all you need.
Upvotes: 2
Reputation: 21134
If you're a fan of keyboard shortcuts like me, you can also assign one via Settings - Keymap
Adding to Ruslan answer, you can also decide to automate the process and keep the Project ToolWindow
always in sync with the currently opened editor.
Just tick the Autoscroll *
menu items.
Upvotes: 2
Reputation: 6290
There is a shortcut: ALT + F1 then select 1.Project View
.
Or you can press Scroll from Source
button:
Upvotes: 5