⌃⇧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 ⌘ Shift C or ⌘ / Add / Remove Comment Lines Find Usages Results ⌘ 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 ⌃⇧G Go to Declaration Convert Selection to Lowercase ⇧ ⌘ 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 ⌥⌘T Reopen Recently Closed File Psfb public static final boolean ⌃ ⇧ 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 8.0 Keyboard Shortcuts & Code Templates bo boolean pe protected JavaScript Editor Code Templates br break; pr private ca catch ( psf private static final al window.alert(${message}); cl class psfb private static final boolean br ${no-indent}break; cn continue psfi private static final int ca ${no-indent}case db double psfs private static final String catch (${exception}) { df default: pst printStackTrace(); catch ${cursor} dowhile do { psvm public static void main(String[] args){ } } while (condition); } cond window.console.debug(${debug}); eq equals pu public coni window.console.info(${info}); ex extends re return conl window.console.log(${log}); fa false runn Runnable runnable = new Runnable() { conw window.console.warn(${warn}); fcom // <editor-fold></editor-fold> public void run() {}}; ct ${no-indent}catch fi final serr System.err.println ("|"); do ${no-indent}document fl float sh short dw document.write(${message}); for (Iterator it = collection.iterator(); sout System.out.println ("|"); Else { forc else ${cursor} it.hasNext();) { soutv System.out.println("Object = " + Object); Object elem = (Object) it.next(); st static } } su super eq ${no-indent}equals fore for (Object elem : iterable) { sw switch (var) { case val: break; fa ${no-indent}false } default: throw new AssertionError();} for (var ${item} in ${object}) { fori for (int i = 0; i < arr.length; i++) {} sy synchronized forin ${selection}${cursor} forl for (int i = 0; i < lst.size(); i++) { tds Thread.dumpStack(); } Object object = lst.get(i); } th throws function ${name}(${parameters}) { forst for (StringTokenizer st = new tr transient fun ${selection}${cursor} StringTokenizer(""); st.hasMoreTokens();) } trycatch try {} } forv for (int i = 0; i < vct.size(); i++) { catch (Exception e) {} hi ${no-indent}window.history Object object = vct.elementAt(i);} tw throw if (${expr}) { fy finally{ |} vo volatile if ${selection}${cursor} ie interface wh while ( } ifelse if (condition){}else { whileit while (it.hasNext()) { iof ${no-indent}instanceof } Object elem = (Object) it.next();} json {"${field}": "${value}"} iff if (exp) {} whilen while (en.hasMoreElements()) { lo ${no-indent}window.location im implements Object elem = (Object) ${no-indent}var ${name} = new ${type}($ new inst if (exp instanceof Object) { en.nextElement();} {arguments}); Object obj = (Object) exp; whilexp while (exp) {} ${propertyName}: function(${parameters}) { iof instanceof prf ${cursor} ir import }, le length re ${no-indent}return na native var ${no-indent}var ${name} = ${value}; newo Object name = new Object(args); win ${no-indent}window