0% found this document useful (0 votes)
20 views2 pages

Shortcuts

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Shortcuts

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Highlights of NetBeans IDE 7.

3 Keyboard Shortcuts & Code Templates


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

You might also like