Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ IDEA - track active item in Solution Explorer

I'm trying to find a nice VS feature "Track Active Item in SOlution Explorer" analog in IDEA. For those who doesn't know - when I switch between files in the main area, VS will highlight the corresponding item in Solution Explorer ("Projects" pane in IDEA).

like image 343
Ivan G. Avatar asked Jul 16 '12 10:07

Ivan G.


People also ask

How do I display the active file in Visual Studio Solution Explorer?

In Visual Studio's menu go to Tools > Options > Projects and Solutions. Then check "Track Active Item in Solution Explorer".

How do I track a file in IntelliJ?

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.

How do I show files in IntelliJ Project Explorer?

Press Shift + cmd + A (Pretty sure it's Shift + Ctrl + A for Windows and Linux) Type select in... Select Select in Project View in the suggestion list.

What is jump to function in IntelliJ?

In IntelliJ IDEA, you can see where and how symbols, such as tags, classes, fields, methods, or functions are defined in your project. For this purpose, the IDE features the Quick Definition popup. To view definition of a symbol, select it in the editor and press Ctrl+Shift+I (or click View | Quick Definition).


1 Answers

Since 2020.1 version the option is called Always Select Opened File:

always select

For the previous versions:

In the Project View there is Autoscroll from Source option when you click on the "gear" icon:

autoscroll from source

like image 91
CrazyCoder Avatar answered Sep 20 '22 17:09

CrazyCoder