Highlights of NetBeans IDE 9 Keyboard Shortcuts & Code Templates
⌃⇧I Fix Import for Selected Class Debugging
Finding, Searching, and Replacing ⌃⇧F Format Selection
⇧ ⌘ F5 Debug Selected File
⌃⌥G Search Word at Insert Point ⌃⇧←/→/↑/ Select Left / Right / Up / Down
⇧ ⌘ F6 Debug Test File
⌘G Find Next / Previous in File ↓
F5 Continue Debugger Session
⌘R Find and Replace in File ⌃⇧R Rectangular Selection (Toggle)
⇧ F5 Finish Debugger Session
⌃ F7 Find Usages ⌃⇧↑/↓ Copy Selection Up / Down
F4 Run to Cursor Location in File
⇧⌘F/H Find / Replace in Projects ⌘ F12 Inspect Members / Hierarchy
F7 / F8 Step Into / Over
⌃⇧U Find Usages Results ⌘ Shift C / ⌘ / Add / Remove Comment Lines
⌘ F7 Step Out
⌃⇧H Toggle Search Result Highlights ⌘E Delete Current Line
⌃↑/↓ Go to Called / Calling Method
⌃R Rename Coding in C/C++ ⌘ F7 Evaluate Expression
⌘ U, then U Convert Selection to Uppercase ⌘ F8 Toggle Breakpoint
⌘ U, then L Convert Selection to Lowercase ⌃⇧G Go to Declaration
⇧ ⌘ F8 New Breakpoint
⌘ U, then S Toggle Case of Selection ⌘ F9 Evaluate Expression ⇧ ⌘ F7 New Watch
⇧⌘V Paste Formatted Compiling, Testing, and Running
⇧⌘D Show Clipboard History
⌘I Jump to Quick Search Field ⇧⌘U Create Unit Test Notes:
⌃⇧L Copy File Path ⇧⌘T Go to Unit Test
⌃ F6 / ⌘ F6 Run Unit Test on Project / File • ⌃ represents ctrl
Navigating through Source Code F6 / ⇧ F6 Run Main Project / File • Press fn to use function keys (e.g., F5, F6, F8)
⌘O/⌃⇧O Go to Type / File ⇧ ⌘ F6 Debug Test File
⇧⌘T Go to JUnit Test Opening and Toggling between Views
⇧⌘B Go to Source
⌘B Go to Declaration ⌘` Go to Previous Document Java Editor Code Templates
⌃G Go to Line ⇧ Esc Maximize / Minimize Window When typing in the Source Editor, generate the text in the
⇧⌘M Toggle Bookmark (Toggle) right-column below by typing the abbreviation that is
⇧ ⌘ Period / Next / Previous Bookmark ⌘W Close Currently Selected listed in the left-column and then pressing Tab.
Comma Window
En Enumeration
⇧⌘1/2 Select in Projects / Files ⇧ ⌘ F4 Close all Windows Ex Exception
⌘[ Move Caret to Matching Bracket ⌃⇧D Undock / Redock Window Ob Object
(Toggle) Psf public static final
⌃Q Go To Last Edit Location Psfb public static final boolean
⌥⌘T Reopen Recently Closed File
⌃ ⇧ Period / Select Next / Previous Element Psfi public static final int
Comma ⌥ Mouse Wheel Zoom Text In / Out Psfs public static final String
Up / Down St String
Coding in Java ⇧⌘S Toggle Inspect Mode ab abstract
⌃I Generate Code as assert true;
⇧⌘I Fix Imports bcom /**/
Highlights of NetBeans IDE 9 Keyboard Shortcuts & Code Templates
bo boolean pe protected catch (${exception}) {
br break; pr private catch ${cursor}
ca catch ( psf private static final }
cl class psfb private static final boolean cond [Link](${debug});
cn continue psfi private static final int coni [Link](${info});
db double psfs private static final String conl [Link](${log});
df default: pst printStackTrace(); conw [Link](${warn});
dowhile do { psvm public static void main(String[] args){ ct ${no-indent}catch
} while (condition); } do ${no-indent}document
eq equals pu public dw [Link](${message});
ex extends re return Else {
fa false runn Runnable runnable = new Runnable() { else ${cursor}
fcom // <editor-fold></editor-fold> public void run() {}}; }
fi final serr [Link] ("|"); eq ${no-indent}equals
fl float sh short fa ${no-indent}false
forc for (Iterator it = [Link](); sout [Link] ("|"); for (var ${item} in ${object}) {
[Link]();) { soutv [Link]("Object = " + Object); forin ${selection}${cursor}
Object elem = (Object) [Link](); st static }
} su super function ${name}(${parameters}) {
fore for (Object elem : iterable) { sw switch (var) { case val: break; fun ${selection}${cursor}
} default: throw new AssertionError();} }
fori for (int i = 0; i < [Link]; i++) {} sy synchronized hi ${no-indent}[Link]
forl for (int i = 0; i < [Link](); i++) { tds [Link](); if (${expr}) {
Object object = [Link](i); } th throws if ${selection}${cursor}
forst for (StringTokenizer st = new tr transient }
StringTokenizer(""); [Link]();) } trycatch try {} iof ${no-indent}instanceof
forv for (int i = 0; i < [Link](); i++) { catch (Exception e) {} json {"${field}": "${value}"}
Object object = [Link](i);} tw throw lo ${no-indent}[Link]
fy finally{ |} vo volatile ${no-indent}var ${name} = new ${type}($
new
ie interface wh while ( {arguments});
ifelse if (condition){}else { whileit while ([Link]()) { ${propertyName}: function(${parameters}) {
} Object elem = (Object) [Link]();} prf ${cursor}
iff if (exp) {} whilen while ([Link]()) { },
im implements Object elem = (Object) re ${no-indent}return
inst if (exp instanceof Object) { [Link]();} var ${no-indent}var ${name} = ${value};
Object obj = (Object) exp; whilexp while (exp) {} win ${no-indent}window
iof instanceof
ir import JavaScript Editor Code Templates
le length al [Link](${message});
na native br ${no-indent}break;
newo Object name = new Object(args); ca ${no-indent}case