Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
3Activity
0 of .
Results for:
No results containing your search query
P. 1
Shortcuts

Shortcuts

Ratings:

4.5

(2)
|Views: 203|Likes:
Published by Dangarchi
This is my bok
This is my bok

More info:

Published by: Dangarchi on Jul 29, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

07/05/2011

pdf

text

original

 
NetBeans 5.0 Keyboard Shortcuts and Code Templates
Finding, Searching, and Replacing
Ctrl-F3Search for word at insertion pointF3/Shift-F3Find next/previous in fileCtrl-F/HFind/Replace in fileAlt-F7Find usagesCtrl-Shift-PFind in projectsAlt-Shift-UShow Usages windowAlt-Shift-HTurn off search result highlightsAlt-Shift-LNext in jump list (all files)Alt-Shift-KPrevious in jump list (all files)Ctrl-RReload formAlt-U, then UConvert selection to uppercaseAlt-U, then LConvert selection to lowercaseAlt-U, then RSwitch case of selection (toggle)
Navigating through Source Code
Alt-Shift-OGo to classAlt-Shift-E Go to JUnit testAlt-OGo to sourceAlt-GGo to declarationCtrl-BGo to super implementationAlt-K/Alt-LBack/ForwardCtrl-GGo to lineCtrl-F2 Toggle add/remove bookmark F2/Shift-F2 Next/previous bookmark F12/Shift-F12Next/previous usage/compile errorCtrl-Shift-1/2/3Select in Projects/Files/FavoritesCtrl-[Move caret to matching bracketCtrl-^Ctrl-[ (French/Belgian keyboard)
Coding in Java
Ctrl-IOverride methodAlt-Shift-F/IFix all/selected class's importsAlt-Shift-WSurround with try-catch blocCtrl-Shift-FReformat selectionCtrl-D/Ctrl-TShift one tab to the left/rightCtrl-Shift-T/DAdd/remove comment lines ("//")Ctrl-L/KInsert next/previous matched wordEsc/Ctrl-SpaceClose/Open code completionCtrl-MSelect next parameterShift-SpaceEnter space, no abbrev expansionAlt-F1/Shift-F1Display/search JavadocCtrl-Shift-M Extract methodAlt-U, then GPrepend “getto identifierAlt-U, then SPrepend “set” to identifierAlt-U, then IPrepend “is” to identifierCtrl-Backspace/DelDelete previous/current wordCtrl-EDelete the current lineCtrl-J, then S/EStart/end recording macroCtrl-Shift-J Insert internationalized stringCtrl-NumPad -Collapse (hide) a block of codeCtrl-NumPad +Expand a collapsed block of codeCtrl-Shift-NumPad-Collapse all code blocksCtrl-Shift-NumPad+Expand all code blocksAlt-EnterShow suggestion/tip/hint
Opening and Toggling between Views
Ctrl-Shift-0Show Search Results windowCtrl-0Show Source EditorCtrl-1Show Projects windowCtrl-2Show Files windowCtrl-3Show Favorites windowCtrl-4Show Output windowCtrl-5Show Runtime windowCtrl-6Show To Do windowCtrl-7Show Navigator windowCtrl-Shift-7Show Properties dialog boxCtrl-Shift-8Show Component PaletteCtrl-8Show Versioning windowCtrl-9Show VCS Output windowShift-F4Show Documents dialog boxAlt-Left ArrowTab to window on leftAlt-Right ArrowTab to window on rightCtrl-Tab (Ctrl-`)Toggle between open documentsShift-EscapeMaximize window (toggle)Ctrl-F4/Ctrl-WClose currently selected windowCtrl-Shift-F4Close all windowsShift-F10Open contextual menu
Compiling, Testing, and Running
F9Compile selected package or fileF11Build main projectShift-F11Clean & build main projectCtrl-QSet request parametersCtrl-Shift-UCreate JUnit testCtrl-F6/Alt-F6Run JUnit test on file/projectF6/Shift-F6Run main project/file
Debugging
F5Start debugging main projectCtrl-Shift-F5Start debugging current fileCtrl-Shift-F6Start debugging test for file (JUnit)Shift-F5/Ctrl-F5Stop/Continue debugging sessionF4Run to cursor location in fileF7/F8Step into/overCtrl-F7Step outCtrl-Alt-UpGo to called methodCtrl-Alt-DownGo to calling methodCtrl-F9Evaluate expressionCtrl-F8Toggle breakpointCtrl-Shift-F8New breakpointCtrl-Shift-F7New watchCtrl-Shift-5Show HTTP MonitorCtrl-Shift-0Show Search Results windowAlt-Shift-1Show Local Variables windowAlt-Shift-2Show Watches windowAlt-Shift-3Show Call Stack windowAlt-Shift-4Show Classes windowAlt-Shift-5Show Breakpoints windowAlt-Shift-6Show Sessions windowCtrl-Shift-6Switch to Execution windowAlt-Shift-7Switch to Threads windowAlt-Shift-8Switch to Sources window
 
NetBeans 5.0 Keyboard Shortcuts and Code Templates
When typing in the Source Editor, you can generate the text in theright-column of the following list by typing the abbreviation that islisted in the left-column and then pressing Space.
Java Editor Code Templates
EnEnumerationExExceptionObObjectPsfpublic static finalPsfbpublic static final booleanPsfipublic static final intPsfspublic static final StringStStringababstractbobooleanbrbreacacatch (clclasscncontinuedfdefault:dowhiledo {} while (
condition
);eqequalsexextendsfafalsefifinalflfloatforcfor (Iterator
it 
=
collection
.iterator();
it 
.hasNext();) { 
Object 
 
elem
= (
Object 
)
it 
.next();}forefor (
Object 
 
elem
: iterable) {}forifor (int
= 0; i <
arr 
.length;
++) {}fyfinallyieinterfaceifelseif (
condition
){}else {}imimplementsiofinstanceoirimportlelengthnewo
Object 
 
name
= new
Object 
(
args
);peprotectedprprivatepsfprivate static finalpsfbprivate static final booleanpsfiprivate static final intpsfsprivate static final StringpstprintStackTrace();psvmpublic static void main(String[] args){}pupublicrereturnserrSystem.err.println ("|");soutSystem.out.println ("|");ststaticswswitch (sysynchronizedtdsThread.dumpStack();ththrowstrycatchtry {}catch (Exception
e
) {}twthrowtwnthrow newwhwhile (whileiwhile (
it.
hasNext()) { 
Object 
 
elem
= (
Object 
)
it 
.next();}
JSP Editor Code Templates
agapplication.getAttribute("|")apapplication.putAttribute("|",)arapplication.removeAttribute("|")cfgiconfig.getInitParameter("|") jspf<jsp:forward page="|"/> jspg<jsp:getProperty name="|" property="" /> jspi<jsp:include page="|"/> jspp<jsp:plugin type="|" code=""codebase=""></jsp:plugin> jsps<jsp:setProperty name="|" property=""/> jspu<jsp:useBean id="I" type=""/>oupout.print("|")ouplout.println("|")pcgpageContext.getAttribute("|")pcgnpageContext.getAttributeNamesInScope("|")pcgspageContext.getAttributesScope("|")pcrpageContext.removeAttribute("|")pcspageContext.setAttribute("|",)pg<%@page |%>pga<%@page autoFlush="false"%>pgb<%@page buffer="|kb"%>pgc<%@page contentType="|"%>pgerr<%@page errorPage="|"%>pgex<%@page extends="|"%>pgie<%@page isErrorPage="true"%>pgim<%@page import="|"%>pgin<%@page info="|"%>pgit<%@page isThreadSafe="false"%>pgl<%@page language="java"%>pgs<%@page session="false"%>rgrequest.getParameter("|")sgsession.getAttribute("|")spsession.setAttribute("|", )srsession.removeAttribute("|")tglb<%@taglib uri="|"%>
XML/DTD Editor Code Templates
?xm<?xml version="1.0" encoding="UTF-8"?>!do<!DOCTYPE>!cd<![CDATA[|]]>!at<!ATTLIST |>!el<!ELEMENT |>!en<!ENTITY |>puPUBLIC "|"sySYSTEM "|"!no<!NOTATION |>cdCDATAemEMPTYenENTITYensENTITIESfi#FIXEDim#IMPLIEDnmNMTOKENnmsNMTOKENSnnNOTATIONpc#PCDATA
 
NetBeans 5.0 Keyboard Shortcuts and Code Templates
Emacs Keyboard Shortcuts
General Keyboard Shortcuts
Ctrl-W, Alt-W, Ctrl-YCut/Copy/PasteCtrl-X, then UUndoCtrl-Shift- ZRedoCtrl-X, then HSelect allCtrl-X, then Ctrl-SSaveCtrl-X, then SSave all
Finding, Searching, and Replacing
Ctrl-S/Ctrl-HFind/replace in fileAlt-S/Alt-RFind next/previous in fileAlt-F7Find usagesCtrl-Shift-PFind in projectsCtrl-Alt-FShow Usages windowCtrl X, then Ctrl-UConvert selection to uppercaseCtrl-X, then Ctrl-LConvert selection to lowercase
Navigating through Source Code
Ctrl-IOverride methodAlt-Shift-FFix all importsAlt-Shift-IFix selected class's importsAlt-Shift-WSurround with try-catch blocCtrl-Shift-FReformat selectionAlt-Shift-OGo to classAlt-Shift-E Go to JUnit testAlt-PERIODGo to declarationCtrl-GGo to lineCtrl-BGo one character to the leftCtrl-FGo one character to the rightAlt-B/FGo one word to the left/rightCtrl-N/PGo one row down/upCtrl-A/Ctrl-EGo to start/end of lineAlt-V/Ctrl-VGo up/down one pageAlt-Shift-COMMAGo to start of documentAlt-Shift-PERIODGo to end of documentCtrl-Shift-1/2/3Select in Projects/Files/FavoritesCtrl-F2 Toggle add/remove bookmark F2/Shift-F2 Next/previous bookmark F12/Shift-F12Next/previous error
Coding in Java
Alt-EnterShow suggestion/tip/hintAlt-0, then Ctrl-X,then TabShift one tab to the leftCtrl-X, then TabShift one tab to the rightCtrl-C, then Ctrl-CComment out lines ("//")Alt-0, then Ctrl-C,then Ctrl-CRemove comment out lines ("//")Alt-SLASHInsert next matched wordCtrl-Q, then TabInsert TabCtrl-X, then Shift-9/0Start/stop recording macroAlt-DDelete next wordAlt-BackspaceDelete previous wordCtrl-DDelete next characterBackspaceDelete previous characterAlt-0, then Ctrl-KCut to start of lineCtrl-KCut to end of lineCtrl-Shift-MINUSCollapse all code blocksCtrl-Shift-PLUSExpand all code blocksCtrl-Shift-M Extract method
Opening and Toggling between Views
Ctrl-Alt-NNew fileCtrl-Shift-NNew projectCtrl-X, then Ctrl-FOpen a fileCtrl-Shift-OOpen a projectCtrl-X, then BShow Documents dialog boxCtrl-X, then 1Maximize window (toggle)Ctrl-X, then Ctrl-KClose currently selected documentCtrl-X, then K(same as above)Ctrl-X, then Ctrl-CExit the IDECtrl-Shift-0Show Search Results windowCtrl-0Show Source EditorCtrl-1Show Projects windowCtrl-2Show Files windowCtrl-3Show Favorites windowCtrl-4Show Output windowCtrl-5Show Runtime windowCtrl-6Show To Do windowCtrl-7Show Navigator windowCtrl-Shift-7Show Properties dialog boxCtrl-8Show Versioning WindowCtrl-Shift-8Show Component PaletteCtrl-9Show VCS Output windowAlt-Left ArrowTab to window on leftAlt-Right ArrowTab to window on rightCtrl-Tab (Ctrl-`)Toggle between open documents
Compiling, Testing, and Running
F9Compile selected package or fileF11Build main projectShift-F11Clean & build main projectCtrl-QSet request parametersCtrl-Shift-UCreate JUnit testCtrl-F6/Alt-F6Run JUnit test on file/projectF6/Shift-F6Run main project/file
Debugging
F5Start debugging main projectCtrl-Shift-F5Start debugging current fileCtrl-Shift-F6Start debugging test for file(JUnit)Shift-F5/Ctrl-F5Stop/Continue debugging sessionF4Run to cursor location in fileF7/F8Step into/overCtrl-F7Step outCtrl-Alt-UpGo to called methodCtrl-Alt-DownGo to calling methodCtrl-F9Evaluate expressionCtrl-F8Toggle breakpointCtrl-Shift-F8New breakpointCtrl-Shift-F7New watch

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->