0 valutazioniIl 0% ha trovato utile questo documento (0 voti)
13 visualizzazioni2 pagine
This document lists keyboard shortcuts and code templates for the NetBeans IDE 9. It provides shortcuts for navigating code, debugging, formatting, commenting, renaming, and more. It also lists Java code templates that can be used by typing an abbreviation and pressing tab to generate boilerplate code like catch blocks, for loops, and print statements.
This document lists keyboard shortcuts and code templates for the NetBeans IDE 9. It provides shortcuts for navigating code, debugging, formatting, commenting, renaming, and more. It also lists Java code templates that can be used by typing an abbreviation and pressing tab to generate boilerplate code like catch blocks, for loops, and print statements.
This document lists keyboard shortcuts and code templates for the NetBeans IDE 9. It provides shortcuts for navigating code, debugging, formatting, commenting, renaming, and more. It also lists Java code templates that can be used by typing an abbreviation and pressing tab to generate boilerplate code like catch blocks, for loops, and print statements.
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 window.console.debug(${debug}); cn continue psfi private static final int coni window.console.info(${info}); db double psfs private static final String conl window.console.log(${log}); df default: pst printStackTrace(); conw window.console.warn(${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 document.write(${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 System.err.println ("|"); eq ${no-indent}equals fl float sh short fa ${no-indent}false forc for (Iterator it = collection.iterator(); sout System.out.println ("|"); for (var ${item} in ${object}) { it.hasNext();) { soutv System.out.println("Object = " + Object); forin ${selection}${cursor} Object elem = (Object) it.next(); 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 < arr.length; i++) {} sy synchronized hi ${no-indent}window.history forl for (int i = 0; i < lst.size(); i++) { tds Thread.dumpStack(); if (${expr}) { Object object = lst.get(i); } th throws if ${selection}${cursor} forst for (StringTokenizer st = new tr transient } StringTokenizer(""); st.hasMoreTokens();) } trycatch try {} iof ${no-indent}instanceof forv for (int i = 0; i < vct.size(); i++) { catch (Exception e) {} json {"${field}": "${value}"} Object object = vct.elementAt(i);} tw throw lo ${no-indent}window.location fy finally{ |} vo volatile ${no-indent}var ${name} = new ${type}($ new ie interface wh while ( {arguments}); ifelse if (condition){}else { whileit while (it.hasNext()) { ${propertyName}: function(${parameters}) { } Object elem = (Object) it.next();} prf ${cursor} iff if (exp) {} whilen while (en.hasMoreElements()) { }, im implements Object elem = (Object) re ${no-indent}return inst if (exp instanceof Object) { en.nextElement();} 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 window.alert(${message}); na native br ${no-indent}break; newo Object name = new Object(args); ca ${no-indent}case