Say I have multiple files opened in Eclipse IDE. I just want Eclipse to show the file in the Project file tree, when I have certain file opened.
Just like in NetBeans. In NetBeans when you focus on some opened file, the left tree will be updated and the file will be located in the left (files tree).
Autoscroll to Source
meant for exactly same purpose. In case, if anyone wants to do it explicitly on need basis then use the settingAutoscroll from Source
. Both these settings can be enabled or disabled using the gear icon present on top right corner of project explorer itself. Related thread - What is the use of autoscroll to source and and autoscroll from source features in Intellij IDEs? – RBT Sep 2 '18 at 0:12