You are on page 1of 2

Highlights of NetBeans IDE 6.

9 Keyboard Shortcuts & Code Templates


Finding, Searching, and Replacing Opening and Toggling between Views
Coding in Java
Ctrl-F3 Search word at insert point Ctrl-Tab (Ctrl-`) Toggle between open
F3/Shift-F3 Find next/previous in file Alt-Insert Generate code documents
Ctrl-F/H Find/Replace in file Ctrl-Shift-I Fix all class imports Shift-Escape Maximize window (toggle)
Alt-F7 Find usages Alt-Shift-I Fix selected class's import Ctrl-F4/Ctrl-W Close currently selected window
Ctrl-Shift-F/H Find/replace in projects Alt-Shift-F Format selection Ctrl-Shift-F4 Close all windows
Alt-Shift-U Find usages results Alt-Shift Left/ Shift lines left/right/up/down Shift-F10 Open contextual menu
Alt-Shift-H Turn off search result highlights Right/Up/Down Alt-Shift-D Undock window
Ctrl-R Rename Ctrl-Shift-Up/D Copy lines up/down
Ctrl/Alt-F12 Inspect members/hierarchy Debugging
Ctrl-U, then U Convert selection to uppercase
Ctrl-U, then L Convert selection to lowercase Ctrl-/ Add/remove comment lines
Ctrl-F5 Start debugging main project
Ctrl-U, then S Toggle case of selection Ctrl-E Delete current line
Ctrl-Shift-F5 Start debugging current file
Ctrl-Shift-V Paste formatted Coding in C/C++ Ctrl-Shift-F6 Start debugging test for file
Ctrl-I Jump to quick search field (JUnit)
Alt-Shift-C Go to declaration Shift-F5/F5 Stop/Continue debugging session
Navigating through Source Code Ctrl-F9 Evaluate expression F4 Run to cursor location in file
Ctrl-O/Alt-Shift-O Go to type/file Coding in Ruby F7/F8 Step into/over
Ctrl-Shift-T Go to JUnit test Ctrl-F7 Step out
Alt-O Go to source Ctrl-Shift-A Jump Rails action > view Ctrl-Alt-Up Go to called method
Ctrl-B Go to declaration Alt-Shift- Select Next/Previous element Ctrl-Alt-Down Go to calling method
Ctrl-G Go to line Period/Comma Ctrl-F9 Evaluate expression
Ctrl-Shift-M Toggle add/remove bookmark Ctrl-Shift-Space Show documentation Ctrl-F8 Toggle breakpoint
Ctrl-Shift- Next/previous bookmark Ctrl-Shift-T Jump from test file to file Ctrl-Shift-F8 New breakpoint
Period/Comma Compiling, Testing, and Running Ctrl-Shift-F7 New watch
Ctrl-Period/CommaNext/previous usage/compile When typing in the Source Editor, generate the text in
error F9 Compile package/ file
F11 Build main project the right-column below by typing the abbreviation that is
Ctrl-Shift-1/2/3 Select in Projects/Files/Favorites listed in the left-column and then pressing Tab.
Ctrl-[ Move caret to matching bracket Shift-F11 Clean & build main project
Ctrl-K/Ctrl-Shift K Next/previous word match Ctrl-Q Set request parameters Java Editor Code Templates
Alt-Left/Alt- Go backward/forward/to last Ctrl-Shift-U Create JUnit test
En Enumeration
Right/Ctrl-Q edit Ctrl-F6/Alt-F6 Run JUnit test on file/project Ex Exception
Alt Up/Down Next/previous marked F6/Shift-F6 Run main project/file Ob Object
occurrence Psf public static final
Psfb public static final boolean
Psfi public static final int
Psfs public static final String
St String
Highlights of NetBeans IDE 6.9 Keyboard Shortcuts & Code Templates
ab abstract le length JSP Editor Code Templates
as assert true; na native
bcom /**/ newo Object name = new Object(args); ag application.getAttribute("|")
bo boolean pe protected ap application.putAttribute("|",)
br break; pr private ar application.removeAttribute("|")
ca catch ( psf private static final cfgi config.getInitParameter("|")
cl class psfb private static final boolean jspf <jsp:forward page="|"/>
cn continue psfi private static final int <jsp:getProperty name="|"
jspg
db double psfs private static final String property="" />
df default: pst printStackTrace(); jspi <jsp:include page="|"/>
dowhile do { psvm public static void main(String[] args){ <jsp:plugin type="|" code=""
jspp
} while (condition); } codebase=""></jsp:plugin>
eq equals pu public jsps <jsp:setProperty name="|" property=""/>
ex extends re return jspu <jsp:useBean id="I" type=""/>
fa false runn Runnable runnable = new Runnable() { oup out.print("|")
fcom // <editor-fold></editor-fold> public void run() {}}; oupl out.println("|")
fi final serr System.err.println ("|"); pcg pageContext.getAttribute("|")
fl float sh short pcgn pageContext.getAttributeNamesInScope("|")
for (Iterator it = collection.iterator(); sout System.out.println ("|"); pcgs pageContext.getAttributesScope("|")
forc pcr pageContext.removeAttribute("|")
it.hasNext();) { soutv System.out.println("Object = " + Object);
Object elem = (Object) it.next(); st static pcs pageContext.setAttribute("|",)
} su super pg <%@page |%>
fore for (Object elem : iterable) { sw switch (var) { case val: break; pga <%@page autoFlush="false"%>
} default: throw new AssertionError();} pgb <%@page buffer="|kb"%>
fori for (int i = 0; i < arr.length; i++) {} sy synchronized pgc <%@page contentType="|"%>
forl for (int i = 0; i < lst.size(); i++) { tds Thread.dumpStack(); pgerr <%@page errorPage="|"%>
Object object = lst.get(i); } th throws pgex <%@page extends="|"%>
forst for (StringTokenizer st = new tr transient pgie <%@page isErrorPage="true"%>
StringTokenizer(""); st.hasMoreTokens();) } trycatch try {} pgim <%@page import="|"%>
forv for (int i = 0; i < vct.size(); i++) { catch (Exception e) {} pgin <%@page info="|"%>
Object object = vct.elementAt(i);} tw throw pgit <%@page isThreadSafe="false"%>
fy finally{ |} twn throw new pgl <%@page language="java"%>
ie interface vo volatile pgs <%@page session="false"%>
ifelse if (condition){}else { wh while ( rg request.getParameter("|")
} whileit while (it.hasNext()) { sg session.getAttribute("|")
iff if (exp) {} Object elem = (Object) it.next();} sp session.setAttribute("|", )
im implements sr session.removeAttribute("|")
inst if (exp instanceof Object) { whilen while (en.hasMoreElements()) { tglb <%@taglib uri="|"%>
Object obj = (Object) exp; Object elem = (Object) en.nextElement();}
iof instanceof
ir import whilexp while (exp) {}

You might also like