Search code examples
netbeansnetbeans6.5

How to link opened file with project tree in NetBeans


I feel dumb asking this question, but I can't find solution to this myself.

When I open several files in editor and switch between them, I have problem finding currently opened file in project or files tree.

I used Eclipse before and every time I changed a tab with file, the project tree set focus for the same file. Is there a way to do something like this in NetBeans?


Solution

  • from http://forums.netbeans.org/topic3732.html :

    You can do this from the navigate menu, I believe. There are entries for going to the file in the project tab or the file tab. I didn't see an option that allows you to do this automatically, like there is in Eclipse, but this menu entry allows you to do it upon request.

    [edit]: also working: in the file > right mouse button > select in > projects | files | classes | favourites

    [edit 2]: http://forums.netbeans.org/topic8420.html : This feature is not available till NetBeans IDE 6.5. This feature is added in the new version and may be available in NetBeans IDE 7.0M1 and after and you can find it in the View Menu.