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

Shortcuts

The document provides a list of keyboard shortcuts and code templates for the NetBeans IDE 6.7. It includes shortcuts for searching, navigating code, debugging, compiling, and running projects. It also lists Java code templates that can be used by typing an abbreviation and tab to generate boilerplate code.

Uploaded by

Rafael Lopez
Copyright
© Attribution Non-Commercial (BY-NC)
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)
77 views2 pages

Shortcuts

The document provides a list of keyboard shortcuts and code templates for the NetBeans IDE 6.7. It includes shortcuts for searching, navigating code, debugging, compiling, and running projects. It also lists Java code templates that can be used by typing an abbreviation and tab to generate boilerplate code.

Uploaded by

Rafael Lopez
Copyright
© Attribution Non-Commercial (BY-NC)
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

Highlightsof NetBeans IDE 6.

7 KeyboardShortcuts & Code Templates


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

You might also like