NetBeans: Quicktip: Open project for open file

A very useful feature of NetBeans is to the project for an opened file.

OpenProjectDialog

Imagine the following scenario: You searched for content in java files using the file explorer (or other indexing tool) — instead of opening all projects and using the file search of NB. You open the file directly in NetBeans by copying its full absolute path and pasting it into the “File-> Open File” dialog.

Now you want to open the surrounding project for several reasons.

  • You could open the project manually OR
  • even easier invoke the action “Navigate->Select in Projects” from the menu bar (or the corresponding shortcut). Now a dialog opens (if a project can be found for the file) and asks for permission to open the project.

Very neat and useful.

About these ads

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s