Geertjan's Blog

  • June 10, 2012

Two Hidden NetBeans Keyboard Shortcuts for Opening & Toggling between Views

Geertjan Wielenga
Product Manager
following are two really basic shortcuts for working with NetBeans editor windows that will be added to the Keyboard Shortcuts card (always accessible under the Help menu) for NetBeans IDE 7.2:

  1. Ctrl-Alt-PgUp/PgDown: Shortcuts for switching between editor types (e.g.
    Source, Design, History buttons). Switching between the editor types is a frequent operation sometimes, e.g., when
    using GUI builder, and while it can be done easily via mouse, or from View |
    Editors menu, it is very handy to know the shortcuts as well.

  2. Ctrl-PgUp/PgDown: Similarly, these are shortcuts for switching to
    next/previous opened document (tab). Note this is not
    like Ctrl-Tab that cycles in the last used order, but going through the tabs as
    they appear in the editor.

Both shortcuts should fit into the "Opening and Toggling between Views"
section. These are important to mention on the card because they are
not visible anywhere else in the UI (as there are no menu items like "Go to
next/previous editor type" or "Go to next/previous document").

Reported by Tomas Pavek from the NetBeans Team, here: http://netbeans.org/bugzilla/show_bug.cgi?id=213815

Join the discussion

Comments ( 5 )
  • Steven Yi Monday, June 11, 2012

    Ah! So glad you mentioned this. I was wanting to use something like this the other day. On Mac though, the common shorcut is cmd-shift-[ and cmd-shift-] to switch to next/previous tab. I just added alternate shortcuts in the program options (yet another feature I wasn't aware of!). Thanks!

  • guest Friday, November 29, 2013

    Does not work on Mac. Maybe because there is no PgUp/PgDown key on my MacBook Pro?

  • guest Friday, November 29, 2013

    Figured it out. It's Ctrl + Cmd + PgUp/PgDown (Up Arrow/Down Arrow)

  • Bob Thompson Sunday, March 15, 2015

    Is there a shortcut to toggle between the code and design window? Similar to "F7" in Visual Studio and "F12" in Delphi?

  • guest Tuesday, August 23, 2016

    Love it!

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.