views:

493

answers:

3

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?

It is really irritating.

Thank you.

+2  A: 

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.

ax
+2  A: 

Just thought of adding what ax said : the keyboard shortcut is :

  • Select in Projects : Ctrl+Shift+1
  • Select in Files : Ctrl+Shift+2
StudioEvoque
Yeah, the keyboard shortcuts are more "the answer" than the menus, though both are helpful.
Jerph
+2  A: 

As described in http://stackoverflow.com/questions/1268046/netbeans-link-with-editor-feature, if you want the link to be permanent or persistent, use View | Synchronize Editor with Views. (In NetBeans >= 6.7.1, at least.)

mjs
Don't have this option in my NB6.5
Josef Sábl
Thanks, amended with version info.
mjs