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.
- 2Not sure what you're looking for, but does ALT-F1 (or Navigate/Select In... in case it's not the same as on the Mac) do what you need?Joachim Isaksson– Joachim Isaksson2013-05-17 16:48:46 +00:00Commented May 17, 2013 at 16:48
- No, that opens different views. Let's say I have a file open, I need to highlight/select that file on the 'left' view. E.g. I have expanded/exploded view on the left but can't find the file that I have open in the explorer.Berlin Brown– Berlin Brown2013-05-17 16:53:37 +00:00Commented May 17, 2013 at 16:53
5 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.
1 Comment
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
2 Comments
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.
