Reputation: 7403
My file structure looks like the above picture.
Now, when I click on Environment
, it shows me all of the methods on the sidebar, rather than opening up the file Environment.java
. I want it to open the file instead.
How do I accomplish this?
Upvotes: 1
Views: 526
Reputation: 22005
Project
headerAutoscroll to Source
Upvotes: 2
Reputation: 425418
That causes the editor pane for that file (if open) to become the current pane. If it’s not already open, double click.
I always also select “Autoscroll from source” too, so selecting an editor window causes the same file to be selected in the project window
Upvotes: 1
Reputation: 106508
By convention, that menu is doing what it should; it shows you the symbols contained in that class.
If you want to navigate to the file, don't rely on your mouse and instead use the keyboard shortcut CTRL+N (or equivalent on Mac) to open a class.
Upvotes: 1