Vineel
Vineel

Reputation: 1788

Intellij highlight file in Project Explorer

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

Answers (3)

Indrajeet Gour
Indrajeet Gour

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.

enter image description here

Upvotes: 2

LppEdd
LppEdd

Reputation: 21134

If you're a fan of keyboard shortcuts like me, you can also assign one via Settings - Keymap

enter image description here

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.

enter image description here

Upvotes: 2

Ruslan
Ruslan

Reputation: 6290

There is a shortcut: ALT + F1 then select 1.Project View.

Or you can press Scroll from Source button:

enter image description here

Upvotes: 5

Related Questions