You are on page 1of 2

Highlights of NetBeans IDE 7.

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

You might also like