Você está na página 1de 2

NetBeans 6.

0 Keyboard Shortcuts & Code Templates


Finding, Searching, and Coding in Java Compiling, Testing, and Running
Replacing F9 Compile package/ file
Alt-Insert Generate code
Ctrl-F3 Search word at insert point Ctrl-Shift-I Fix all class imports F11 Build main project
F3/Shift-F3 Find next/previous in file Alt-Shift-I Fix selected class's import Shift-F11 Clean & build main project
Ctrl-F/H Find/Replace in file Alt-Shift-F Reformat selection Ctrl-Q Set request parameters
Alt-F7 Find usages Alt-Shift- Shift tab to the left/right Ctrl-Shift-U Create JUnit test
Ctrl-Shift-P Find/replace in projects Left/Right Ctrl-F6/Alt-F6 Run JUnit test on file/project
Alt-Shift-U Find usages results Ctrl-/ Add/remove comment lines F6/Shift-F6 Run main project/file
Alt-Shift-H Turn off search result Ctrl/Alt-F12 Inspect members/hierarchy
highlights
Opening and Toggling between
Ctrl-E Delete current line
Alt-Left Next in jump list Views
Alt-Right Previous in jump list Coding in C/C++ Ctrl-Tab (Ctrl-`) Toggle between open
Ctrl-R Rename documents
Alt-Shift-C Go to declaration
Ctrl-U, then U Convert selection to Shift-Escape Maximize window (toggle)
Ctrl-F9 Evaluate expression
uppercase Ctrl-F4/Ctrl-W Close currently selected
Ctrl-U, then L Convert selection to Coding in Ruby window
lowercase Ctrl-Shift-F4 Close all windows
Ctrl-U, then S Toggle case of selection Ctrl-Shift-A Jump Rails action > view
Shift-F10 Open contextual menu
Alt-Shift-V Paste formatted Alt-Shift- Select Next/Previous
Alt-Shift-D Undock window
Period/Comma element
Navigating through Source Code Ctrl-Shift-Space Show documentation Debugging
Ctrl-O/Alt-Shift-O Go to type/file Ctrl-Shift-T Jump from test file to file
Alt-Shift-O Open file by name prefix Ctrl-F5 Start debugging main project
Ctrl-Shift-T Go to JUnit test
Ctrl-Shift-F5 Start debugging current file
Alt-O Go to source
SOA Ctrl-Shift-F6 Start debugging test for file
Ctrl-B Go to declaration
(JUnit)
Ctrl-G Go to line Tab-Shift-Arrows Move through elements
Shift-F5/F5 Stop/Continue debugging
Ctrl-Shift-M Toggle add/remove Alt-Shift-F Advanced search
session
bookmark Alt/Shift-Enter Expand/collapse elements
F4 Run to cursor location in file
Ctrl-Shift- Next/previous bookmark Ctrl-Shift-9 Show BPEL Mapper
F7/F8 Step into/over
Period/Comma
UML Ctrl-F7 Step out
Ctrl- Next/previous
Ctrl-Alt-Up Go to called method
Period/Comma usage/compile error Alt-Shift-A/O Insert attribute/operation Ctrl-Alt-Down Go to calling method
Ctrl-Shift-1/2/3 Select in into selected element Ctrl-F9 Evaluate expression
Projects/Files/Favorites Ctrl-Shift-F Fit diagram into window Ctrl-F8 Toggle breakpoint
Ctrl-[ Move caret to matching F8 Toggle Overview window Ctrl-Shift-F8 New breakpoint
bracket Ctrl-Shift-5 Select active UML diagram Ctrl-Shift-F7 New watch
Ctrl-K/Ctrl-Shift K Next/previous word match
NetBeans 6.0 Keyboard Shortcuts & Code Templates
When typing in the Source Editor, you can generate the ir import <jsp:setProperty name="|"
text in the right-column of the following list by typing jsps
le length property=""/>
the abbreviation that is listed in the left-column and newo Object name = new Object(args); jspu <jsp:useBean id="I" type=""/>
then pressing Tab. pe protected oup out.print("|")
pr private oupl out.println("|")
Java Editor Code Templates psf private static final pcg pageContext.getAttribute("|")
En Enumeration psfb private static final boolean pageContext.getAttributeNamesInScope(
pcgn
Ex Exception psfi private static final int "|")
Ob Object psfs private static final String pcgs pageContext.getAttributesScope("|")
Psf public static final pst printStackTrace(); pcr pageContext.removeAttribute("|")
Psfb public static final boolean psvm public static void main(String[] args){ pcs pageContext.setAttribute("|",)
Psfi public static final int } pg <%@page |%>
Psfs public static final String pu public pga <%@page autoFlush="false"%>
St String re return pgb <%@page buffer="|kb"%>
ab abstract serr System.err.println ("|"); pgc <%@page contentType="|"%>
bo boolean sout System.out.println ("|"); pgerr <%@page errorPage="|"%>
br break st static pgex <%@page extends="|"%>
ca catch ( sw switch ( pgie <%@page isErrorPage="true"%>
cl class sy synchronized pgim <%@page import="|"%>
cn continue tds Thread.dumpStack(); pgin <%@page info="|"%>
df default: th throws pgit <%@page isThreadSafe="false"%>
dowhile do { trycatch try {} pgl <%@page language="java"%>
} while (condition); catch (Exception e) {} pgs <%@page session="false"%>
eq equals tw throw rg request.getParameter("|")
ex extends twn throw new sg session.getAttribute("|")
fa false wh while ( sp session.setAttribute("|", )
fi final whilei while (it.hasNext()) { sr session.removeAttribute("|")
fl float Object elem = (Object) it.next(); tglb <%@taglib uri="|"%>
forc for (Iterator it = collection.iterator(); }
it.hasNext();) {
To change default settings:
Object elem = (Object) it.next(); JSP Editor Code Templates 1. Choose Tools > Options from the main menu.
} ag application.getAttribute("|") 2. For code templates, select Editor and click
fore for (Object elem : iterable) { ap application.putAttribute("|",) the Code Templates tab. Here you can also
} ar application.removeAttribute("|") change the expansion key, from Tab to
fori for (int i = 0; i < arr.length; i++) { cfgi config.getInitParameter("|") something else.
} jspf <jsp:forward page="|"/> 3. For keyboard shortcuts, select Keymap
fy finally <jsp:getProperty name="|"
jspg and choose a profile from the Profile drop-
ie interface property="" /> down list.
ifelse if (condition){}else { jspi <jsp:include page="|"/>
} <jsp:plugin type="|" code="" Mac OS X keyboard shortcuts:
im implements jspp
codebase=""></jsp:plugin>
iof instanceof http://www.netbeans.org/kb/articles/mac.html

Você também pode gostar