Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans: Automatically Select Current File in Projects

How can I get Netbeans to automatically select (highlight) the currernt file in the Project window? Whenever I select a file in an editor tab I would like the project window to move to that file (expand parent packages/directories if necessary).

At work it has always done this but at home it does not. I figure there is a configuration option somewhere but I can't find it. I run the same version at home as at work (6.9) the only differences being I use Windows at work and Linux at home and my Netbeans install at work was upgraded from 6.8 while my 6.9 install at home is fresh.

like image 531
Josh Johnson Avatar asked Feb 19 '11 14:02

Josh Johnson


People also ask

What does project Navigator provide in the NetBeans IDE?

The Navigator window provides a compact view of the file that is currently selected, and simplifies navigation between different parts of the file. If the Navigator window is not displayed, choose Window > Navigating > Navigator to open it. Click anywhere in the quote.cc file in the Editor window.

How do I show Project Explorer in NetBeans?

In NetBeans 8.2 Go to Window->Navigator in menu bar or press Ctrl+7 and select Projects it will open a folder as work space .

Where are projects saved in NetBeans?

The project directory is just a place where you've custom-specified the netbeans projects storage. But, the sub-directory myapp is simply one of the project name of your NetBeans projects which is to be stored inside the parent NetBeans projects directory (D:\dev\java\project) here.


1 Answers

Try ViewSynchronize Editor with Views (it should be selected)

like image 81
jaPawel Avatar answered Oct 01 '22 22:10

jaPawel