Important Shortcut Keywords For NetBeans IDE

Introduction

NetBeans IDE uses many shortcut keys on its text editor to make the work smooth and easy to complete. In this article we are going to discuss the various shortcut keys used in NetBeans IDE with its effect using screenshots.

The following are some of the Shortcut keys:

  • Toggle Editor: To toggle editor of your NetBeans IDE i.e., to maximize or minimize the editor we can use shortcut keys "Shift+Esc". To maximize the Editor of the NetBeans we need to use this shortcut key to work efficiently on the editor. The following is a sample screenshot,

12.1.jpg

  • Navigate to Member: To goto a specific method of a class, the shortcut key "Ctrl+F12" is used to accomplish this task. This shortcut key is mostly used when the size of the class becomes large and its harder to find a method among many methods in the class. When we type the name of the class in the text field provided the content are filtered to determine the matching method name. A screenshot is as follows:

12.2.jpg

  • Open Navigator Window: The Shortcut key used to open the navigator window is "Ctrl+7". This navigator window will appear only when the editor is in maximized mode. One can use this "Ctrl+7" key to navigate and retrieve the method or can use the second method i.e., "Ctrl+F12". The following screenshot gives a view of Navigator window:

12.3.jpg

  • Format Code: To format your code the combination of keywords used as shortcut is "Alt+Shift+F". This shortcut makes the code fully in standard Java code formatting template.
  • Toggle comment: To toggle comments the shortcut key used is "Ctrl+/". This shortcut key is used when we require to make a quick commenting of some line, for doing this we need to select those lines and press "Ctrl+/" and to uncomment the same lines we need to simply use this shortcut keys again.

12.4.jpg

  • Activate the Editor: To go back to the editor from the navigator window we need to use the shortcut "Ctrl+0". After using the keys "Ctrl+7" to open a navigator window we use "Ctrl+0" to return the editor back from the navigator window.
  • Generate Code: After pressing the combination "Alt+Insert" we get a code generating menu. This is used when we need to generate a constructor.

        12.5.jpg

  • Find Usage: Sometimes we need to determine all occurrences of a particular method call. We can find do that by using the shortcut "Alt+F7". The following screenshot shows the Find Usage window.
12.6.jpg
  • Close Editor Window: To close the various windows opened in NetBeans we can use one of the following two shortcuts:
  1. "Ctrl+F4" or
  2. "Ctrl+Shift+F4"
  • Activate various windows: The following shortcuts are used to open various windows:
  1. "Ctrl+1" is used to open project window.
  2. "Ctrl+2" is used to open the files window.
  3. "Ctrl+3" is used to open favorite window.
  4. "Ctrl+4" is used to open the output window.
  5. "Ctrl+5" is used to open the service window.
  6. "Ctrl+6" is used to open tasks window.

Up Next
    Ebook Download
    View all
    Learn
    View all