Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans Shortcut to Open File

I remember seeing someone use a shortcut in NetBeans to open a dialog similar to phpStrom that can open files based on class names or is it file name. whats that?

like image 329
Jiew Meng Avatar asked Jan 01 '11 07:01

Jiew Meng


People also ask

How do I view files 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 .

How do I open a Java file in NetBeans?

In the NetBeans IDE, choose File | New Project.... NetBeans IDE with the File | New Project menu item selected. In the New Project wizard, expand the Java category and select Java Application as shown in the following figure: NetBeans IDE, New Project wizard, Choose Project page.

How do I open a file tab in NetBeans?

Clicking on CTRL + 2 will open the Files Tab.


2 Answers

Updated

I'm fairly certain you are referring to the "Quick File Chooser" plugin. As someone else points out, though, there are several other candidates. I list them below...

The Quick File Chooser Plugin:

By default CTRL-SHIFT-O opens the Open Project dialog, and once the plugin is installed, you will get the dialog pictured here automatically:

Quick File Chooser - Open Project Dialog

(The Quick File Chooser plugin replaces the default open project dialog with its own.)

When opening a file with the Quick File Chooser plugin, you see this:

Quick File Chooser - Open File Dialog

I did not find that the plugin was able to open based on a class name.

Quick File Chooser is available through the NetBeans Plugin Portal. You can also install it directly from within NetBeans versions 7.1 and 7.3 if you have the "Plugin Portal" Update Center configured. (See the bottom of this answer for instructions.)

NetBeans Core (no plugin)

By default CTRL-SHIFT-O opens the Open Project dialog, and without the QFC plugin, you will get the default dialog:

default Open Project dialog (Windows)

The default Open File dialog is this:

default Open File dialog (Windows)

The Open File dialog does not have a keyboard shortcut by default, but you can easily add it:

  • Click on Tools, then Options, then on the Keymap icon in the tool bar of the dialog.
  • In Search: type "Open Fi" and you should see "Open File..." in the Actions list.
  • Double click on the Shortcut box for that entry, and select an appropriate shortcut (either by pressing the key combination, or by selecting it from the drop-down).
  • Click OK.

The Go To... Dialogs:

The Go To... dialogs are provided by core NetBeans, and are available even if the QFC plugin is installed (the QFC plugin does not override them).

The Go To File dialog is ALT-SHIFT-O.

alt text

Go To Type: CTRL-O, appears to list classes, variables, and all sorts of stuff.

alt text

Go To Symbol: CTRL-ALT-SHIFT-O

alt text

For PHP projects, Go To Type and Go To Symbol appear to list the same set. As mentioned, all of these are available on the Navigate menu.

Installing Quick File Chooser from the Plugin Portal Update Center

In NetBeans:

  • Click on Tools, then Plugins
  • Go to the Settings tab
  • Ensure that the "Plugin Portal" is listed in Configuration of Update Centers and checked as Active. If it is not listed, click Add, give it an appropriate name, and the URL is http://plugins.netbeans.org/nbpluginportal/updates/7.3/catalog.xml.gz for versions 7.3.x. (In the URL replace the "7.3" with, e.g., "7.2" or "7.1" if you are using an older version of NetBeans.)
  • Click on the Available Plugins tab.
  • Click on Reload Catalog just to be sure you have the latest contents.
  • In Search: type "Quick". That should be enough to get it listed by itself (or at least on a short list).
  • Click on the check box under the Install column, and then click on the Install button down below.
like image 54
RobertB Avatar answered Sep 22 '22 17:09

RobertB


to open a file based on its name Alt+Shift+O.

like image 26
faisalbhagat Avatar answered Sep 23 '22 17:09

faisalbhagat