How to link opened file with project tree in NetBeans

Josef Sábl picture Josef Sábl · Feb 26, 2009 · Viewed 12k times · Source

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?

Answer

StudioEvoque picture StudioEvoque · May 30, 2009

Just thought of adding what ax said:

The keyboard shortcuts in Windows are:

  • Select in Projects : Ctrl+Shift+1
  • Select in Files : Ctrl+Shift+2

The keyboard shortcuts in OS X are:

  • Select in Projects : CMD+Shift+1
  • Select in Files : CMD+Shift+2