You are on page 1of 2

Highlights of NetBeans IDE 7.

3 Keyboard Shortcuts & Code Templates


Finding, Searching, and Replacing Ctrl-F3 F3/Shift-F3 Ctrl-F/H Alt-F7 Ctrl-Shift-F/H Alt-Shift-U Alt-Shift-H Ctrl-R Ctrl-U, then U Ctrl-U, then L Ctrl-U, then S Ctrl-Shift-V Ctrl-Shift-D Ctrl-I Alt-Shift-L Ctrl-O/Alt-Shift-O Ctrl-Shift-T Alt-O Ctrl-B Ctrl-G Ctrl-Shift-M Ctrl-Shift-Period / Comma Ctrl-Period / Comma Alt-Shift-Period / Comma Ctrl-Shift-1/2/3 Ctrl-[ Ctrl-K/Ctrl-Shift K Alt-Left/AltRight/Ctrl-Q Alt Up / Down Search word at insert point Find next/previous in file Find/Replace in file Find usages Find/replace in projects Find usages results Turn off 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 add/remove bookmark Next/previous bookmark Next/previous usage/compile error Select next/previous element Select in Projects/Files/Favorites Move caret to matching bracket Next/previous word match Go backward/forward/to last edit Next/previous marked occurrence Coding in C/C++ Alt-Shift-C Ctrl-F9 Coding in Java Alt-Insert Ctrl-Shift-I Alt-Shift-I Alt-Shift-F Alt-Shift Left/ Right/Up/Down Ctrl-Shift-R Ctrl-Shift-Up/D Ctrl/Alt-F12 Ctrl-/ Ctrl-E F9 F11 Shift-F11 Ctrl-Q Ctrl-Shift-U Ctrl-F6/Alt-F6 F6/Shift-F6 Ctrl-Tab (Ctrl-`) Shift-Escape Ctrl-F4/Ctrl-W Ctrl-Shift-F4 Shift-F10 Ctrl-PgUp / PgDown Ctrl-Alt-T Generate code Fix all class imports Fix selected class's import Format selection Shift lines left/right/up/down Rectangular Selection (Toggle) Copy lines up/down Inspect members/hierarchy Add/remove comment lines Delete current line Compile package/ file Build main project Clean & build main project Set request parameters Create Unit test Run Unit test on file/project Run main project/file Switch between open documents by order used Maximize window (toggle) Close selected window Close all windows Open contextual menu Switch between open documents by order of tabs Reopen recently closed file Go to declaration Evaluate expression Ctrl-Alt-PgUp / Toggle between editor types PgDown Alt-Mouse Wheel Zoom text in / out Up / Down Debugging Ctrl-F5 Ctrl-Shift-F5 Ctrl-Shift-F6 Shift-F5/F5 F4 F7/F8 Ctrl-F7 Ctrl-Alt-Up Ctrl-Alt-Down Ctrl-F9 Ctrl-F8 Ctrl-Shift-F8 Ctrl-Shift-F7 Start debugging main project Start debugging current file Start debugging test for file Stop/Continue debugging session Run to cursor location in file Step into/over Step out Go to called method Go to calling method Evaluate expression Toggle breakpoint New breakpoint New watch

Navigating through Source Code

Compiling, Testing, and Running

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. Java Editor Code Templates En Ex Ob Psf Psfb Psfi Psfs St ab as bcom bo br ca 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 (

Opening and Toggling between Views

Highlights of NetBeans IDE 7.3 Keyboard Shortcuts & Code Templates


cl cn db df dowhile eq ex fa fcom fi fl forc class 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 psfb psfi psfs pst psvm private static final boolean private static final int private static final String printStackTrace(); public static void main(String[] args){ } pu public re return runn Runnable runnable = new Runnable() { public void run() {}}; serr System.err.println ("|"); sh short sout System.out.println ("|"); soutv System.out.println("Object = " + Object); st static su super sw switch (var) { case val: break; default: throw new AssertionError();} sy synchronized tds Thread.dumpStack(); th throws tr transient trycatch try {} catch (Exception e) {} tw throw vo volatile wh while ( whileit while (it.hasNext()) { Object elem = (Object) it.next();} whilen while (en.hasMoreElements()) { Object elem = (Object) en.nextElement();} whilexp 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

You might also like