Você está na página 1de 2

Highlights of NetBeans IDE 7.

3 Keyboard Shortcuts & Code Templates


Finding, Searching, and Replacing G G R F7 F/H U H R U, then U U, then L U, then S V D I L O/O T B B G M Period / Comma 1/2 [ Q Period / Comma Coding in Java I I Generate Code Fix Imports Search Word at Insert Point Find Next / Previous in File Find and Replace in File Find Usages Find / Replace in Projects Find Usages Results Toggle Search Result Highlights Rename Convert Selection to Uppercase Convert Selection to Lowercase Toggle Case of Selection Paste Formatted Show Clipboard History Jump to Quick Search Field Copy File Path Go to Type / File Go to JUnit Test Go to Source Go to Declaration Go to Line Toggle Bookmark Next / Previous Bookmark Select in Projects / Files Move Caret to Matching Bracket Go To Last Edit Location Select Next / Previous Element I F /// R / F12 / E Coding in C/C++ G F9 U T F6 / F6 F6 / F6 F6 ` Esc W F4 D T Mouse Wheel Up / Down Debugging F5 F6 Debug Selected File Debug Test File Go to Declaration Evaluate Expression Create Unit Test Go to Unit Test Run Unit Test on Project / File Run Main Project / File Debug Test File Go to Previous Document Maximize / Minimize Window (Toggle) Close Currently Selected Window Close all Windows Undock / Redock Window (Toggle) Reopen Recently Closed File Zoom Text In / Out Fix Import for Selected Class Format Selection Select Left / Right / Up / Down Rectangular Selection (Toggle) Copy Selection Up / Down Inspect Members / Hierarchy Add / Remove Comment Lines Delete Current Line F5 F5 F4 F7 / F8 F7 / F7 F8 F8 F7 Notes: represents ctrl Press fn to use function keys (e.g., F5, F6, F8) Continue Debugger Session Finish Debugger Session Run to Cursor Location in File Step Into / Over Step Out Go to Called / Calling Method Evaluate Expression Toggle Breakpoint New Breakpoint New Watch

Compiling, Testing, and Running

Navigating through Source Code

Java Editor Code Templates


When typing in the Source Editor, generate the text in the right-column below by typing the abbreviation that is listed in the left-column and then pressing Tab. En Ex Ob Psf Psfb Psfi Psfs St ab as bcom bo br ca cl Enumeration Exception Object public static final public static final boolean public static final int public static final String String abstract assert true; /**/ boolean break; catch ( class

Opening and Toggling between Views

Highlights of NetBeans IDE 7.3 Keyboard Shortcuts & Code Templates


cn db df dowhile eq ex fa fcom fi fl forc continue double default: do { } while (condition); equals extends false // <editor-fold></editor-fold> final float for (Iterator it = collection.iterator(); it.hasNext();) { Object elem = (Object) it.next(); } for (Object elem : iterable) { } for (int i = 0; i < arr.length; i++) {} for (int i = 0; i < lst.size(); i++) { Object object = lst.get(i); } for (StringTokenizer st = new StringTokenizer(""); st.hasMoreTokens();) } for (int i = 0; i < vct.size(); i++) { Object object = vct.elementAt(i);} finally{ |} interface if (condition){}else { } if (exp) {} implements if (exp instanceof Object) { Object obj = (Object) exp; instanceof import length native Object name = new Object(args); protected private private static final private static final boolean psfi psfs pst psvm pu re runn serr sh sout soutv st su sw sy tds th tr trycatch tw vo wh whileit whilen whilexp private static final int private static final String printStackTrace(); public static void main(String[] args){ } public return Runnable runnable = new Runnable() { public void run() {}}; System.err.println ("|"); short System.out.println ("|"); System.out.println("Object = " + Object); static super switch (var) { case val: break; default: throw new AssertionError();} synchronized Thread.dumpStack(); throws transient try {} catch (Exception e) {} throw volatile while ( while (it.hasNext()) { Object elem = (Object) it.next();} while (en.hasMoreElements()) { Object elem = (Object) en.nextElement();} while (exp) {} JSP Editor Code Templates ag ap ar cfgi jspf jspg jspi jspp jsps jspu oup oupl pcg pcgn pcgs pcr pcs pg pga pgb pgc pgerr pgex pgie pgim pgin pgit pgl pgs rg sg sp sr tglb application.getAttribute("|") application.putAttribute("|",) application.removeAttribute("|") config.getInitParameter("|") <jsp:forward page="|"/> <jsp:getProperty name="|" property="" /> <jsp:include page="|"/> <jsp:plugin type="|" code="" codebase=""></jsp:plugin> <jsp:setProperty name="|" property=""/> <jsp:useBean id="I" type=""/> out.print("|") out.println("|") pageContext.getAttribute("|") pageContext.getAttributeNamesInScope("|") pageContext.getAttributesScope("|") pageContext.removeAttribute("|") pageContext.setAttribute("|",) <%@page |%> <%@page autoFlush="false"%> <%@page buffer="|kb"%> <%@page contentType="|"%> <%@page errorPage="|"%> <%@page extends="|"%> <%@page isErrorPage="true"%> <%@page import="|"%> <%@page info="|"%> <%@page isThreadSafe="false"%> <%@page language="java"%> <%@page session="false"%> request.getParameter("|") session.getAttribute("|") session.setAttribute("|", ) session.removeAttribute("|") <%@taglib uri="|"%>

fore fori forl forst forv fy ie ifelse iff im inst iof ir le na newo pe pr psf psfb

Você também pode gostar