Shortcuts NetBeans for Windows

136 shortcuts2,541 views
Open Trainer

General Keyboard Shortcts

WindowsAction
Ctrl+F3Search word at insert point
F3/Shift+F3Find next/previous in file
Ctrl+F/HFind/Replace in file
Alt+F7Find usages
Ctrl+Shift+F/HFind/replace in projects
Alt+Shift+UFind usages results
Alt+Shift+HTurn off search result highlights
Ctrl+RRename
Ctrl+U, then UConvert selection to uppercase
Ctrl+U, then LConvert selection to lowercase
Ctrl+U, then SToggle case of selection
Ctrl+Shift+VPaste formatted
Ctrl+Shift+DShow Clipboard History
Ctrl+IJump to quick search field
Alt+Shift+LCopy file path
Ctrl+O/Alt+Shift+OGo to type/file
Ctrl+Shift+TGo to JUnit test
Ctrl+Shift+BGo to source
Ctrl+BGo to declaration
Ctrl+GGo to line
Ctrl+Shift+MToggle add/remove bookmark
Ctrl+Shift+./,Next/previous bookmark
Ctrl+./,Next/previous usage/compile error
Alt+Shift+./,Select next/previous element
Ctrl+Shift+1/2/3Select in Projects/Files/Favorites
Ctrl+[Move caret to matching bracket
Ctrl+K/Ctrl+Shift+KNext/previous word match
Alt+Left Arrow/Alt+Right Arrow/Ctrl+QGo backward/forward/to last edit
Alt+Up Arrow/Down ArrowNext/previous marked occurrence

Coding in C/C++

WindowsAction
Alt+Shift+CGo to declaration
Ctrl+F9Evaluate expression

Coding in Java

WindowsAction
Alt+InsertGenerate code
Ctrl+Shift+IFix all class imports
Alt+Shift+IFix selected class's import
Alt+Shift+FFormat selection (Indent)
Alt+Shift+Arrow KeysShift lines left/right/up/down
Ctrl+Shift+RRectangular Selection (Toggle)
Ctrl+Shift+Arrow Up/Arrow DownCopy lines up/down
Ctrl/Alt+F12Inspect members/hierarchy
Ctrl+Shift+C/Ctrl+/Add/remove comment lines
Ctrl+EDelete current line

Java Editor Code Templates

WindowsAction
Type shortcut and press Tabpsvm
public static void mainEn
EnumerationEx
ExceptionPsf
public static finalPsfb
public static final booleanPsfi
public static final intPsfs
public static final StringSt
Stringab
abstractas
assert truebr
breakbo
booleanca
catchcl
classcn
continuedb
doubledf
defaulteq
equalex
extendspu
publicpr
privatepe
protectedth
throwsfy
finallyim
implementsie
interfacetw
throwir
importle
lengthsout
System.out.println()soutv
System.out.println("obj"+obj)wh
whilevo
volatileiof
instanceoffi
finalfl
floatfa
falsesh
shortpsf
private static finalpsfb
private static final booleanpsfi
private static fianl intpsfs
private static final Stringpst
printStackTrace()bcom
/**/

JSP Editor Code Templates

WindowsAction
Type shortcut and press Tabal
windows.alert()br
break;fun
function${name}...hi
windows.historydw
document.write()eq
${}equalsfa
${}falselo
${}windows.locationre
${}returnWin
$()windowca
${}caseCatch()catch
catchcond
windows.consoledebug()coni
windows.console.info()conl
windows.console.log()conw
windows.console.warn()ct
${}catchdo
${}documentiof
${}instanceof

Compiling, Testing, and Running

WindowsAction
F9Compile package/ file
F11Build main project
Shift+F11Clean and build main project
Ctrl+QSet request parameters
Ctrl+Shift+UCreate Unit test
Ctrl+F6/Alt+F6Run Unit test on file/project
F6/Shift+F6Run main project/file

Opening and Toggling between Views

WindowsAction
Ctrl+Tab (Ctrl+`)Switch between open documents by order used
Shift+EscMaximize window (toggle)
Ctrl+F4/Ctrl+WClose selected window
Ctrl+Shift+F4Close all windows
Shift+F10Open contextual menu
Ctrl+Page Up / Page DownSwitch between open documents by order of tabs
Ctrl+Alt+TReopen recently closed file
Ctrl+Alt+Page Up / Page DownToggle between editor types
Alt+Mouse Wheel Up / DownZoom text in / out
Ctrl+Shift+SToggle Inspect Mode

Debugging

WindowsAction
Ctrl+F5Start debugging main project
Ctrl+Shift+F5Start debugging current file
Ctrl+Shift+F6Start debugging test for file
Shift+F5/F5Stop/Continue debugging session
F4Run to cursor location in file
F7/F8Step into/over
Ctrl+F7Step out
Ctrl+Alt+UpGo to called method
Ctrl+Alt+Arrow DownGo to calling method
Ctrl+F9Evaluate expression
Ctrl+F8Toggle breakpoint
Ctrl+Shift+F8New breakpoint
Ctrl+Shift+F7New watch