NetBeans IDE 4.1 Keyboard Shortcuts

advertisement
NetBeans IDE 4.1 Keyboard Shortcuts
Editing
Ctrl-Space
Ctrl-M
Esc
Shift-Space
Code completion
Select next parameter
Close code completion
Enter a space without expanding
an abbreviation
Alt-F1/Shift-F1
Display/search Javadoc
Alt-Shift-I
Import class
Ctrl-I
Override method
Alt-U, then G
Append “get” to identifier
Alt-U, then S
Append “set” to identifier
Alt-U, then I
Append “is” to identifier
Ctrl-Shift-F
Reformat selection
Ctrl-D/Ctrl-T
Shift one tab to the left/right
Ctrl-Shift-T
Comment out lines ("//")
Ctrl-Shift-D
Remove comment out lines ("//")
Ctrl-Backspace/Del Delete previous/current word
Ctrl-E
Remove the current line
Ctrl-J, then S/E
Start/end recording macro
Ctrl-[
Insert point to matching bracket
Ctrl-^
Ctrl-[ on French/Belgian keyboard
Ctrl-Shift-J
Insert internationalized string
Ctrl-NumPadCollapse (hide) a block of code
Ctrl-NumPad+
Expand a collapsed block of code
Ctrl-Shift-NumPad- Collapse all code blocks
Ctrl-Shift-NumPad+ Expand all code blocks
Ctrl-R
Reload form
Searching
Ctrl-Shift-0
Ctrl-L
Ctrl-K
Ctrl-Shift-P
Ctrl-F/H
F3
Shift-F3
Alt-Shift-O
Switch to Search Results window
Word match - forward
Word match - back
Find in projects
Find/replace in file
Find next in file
Find previous in file
Go to class
Alt-G
Ctrl-F3
Alt-F7
Ctrl-Alt-F
Alt-Shift-H
Ctrl-F2
F2/Shift F2
Alt-L
Alt-K
Alt-Shift-L
Alt-Shift-K
Go to declaration
Search for word at insertion point
Find usages
Open Usages window
Toggle search result highlights
Add/remove bookmark
Next/previous bookmark
Next in jump list (this file)
Previous in jump list (this file)
Next in jump list (all files)
Previous in jump list (all files)
Creating and Developing
Ctrl-Shift-N/O
Ctrl-0
Ctrl-1/Ctrl-Shift-1
Ctrl-2/Ctrl-Shift-2
Ctrl-3/Ctrl-Shift-3
Ctrl-4
Ctrl-5
Ctrl-6
Ctrl-7
Ctrl-8/Ctrl-Shift-8
Ctrl-9
Alt-Left Arrow
Alt-Right Arrow
Ctrl-Tab (Ctrl-`)
Shift-Escape
Shift-F4
Ctrl-Shift-7
Shift-F10
Ctrl-F4
Ctrl-Shift-F4
New/open project
Switch to Source Editor
Switch to Projects window
Switch to Files window
Switch to Favorites window
Switch to Output window
Switch to Runtime window
Switch to To Do window
Switch to Navigator window
Switch to Versioning window
Switch to VCS Output window
Tab to window on left
Tab to window on right
Toggle between windows
Maximize window (toggle)
Open Documents dialog box
Open Properties window
Open contextual menu
Close currently selected window
Close all windows
Editing XML Documents
Alt-F9
Alt-Shift-F9
Ctrl-Alt-T
Check XML
Validate XML
Perform XML transformation
Compiling, Testing, and Running
F9
F11
Shift-F11
F12/Shift-F12
Ctrl-Q
Alt-Ctrl-J
Alt-Ctrl-K
Ctrl-F6
Alt-F6
F6
Shift-F6
Compile selected package or file
Build main project
Clean & build main project
Scroll to next/prev error in source
Set request parameters
Create JUnit test
Open JUnit test
Run JUnit test on file
Run JUnit test on project
Run main project
Run file
Debugging
F5
Ctrl-Shift-F5
Ctrl-Shift-F6
Shift-F5/Ctrl-F5
F4
F7/F8
Alt-Shift-F7
Ctrl-Alt-Up
Ctrl-Alt-Down
Shift-F8
Ctrl-F8
Ctrl-Shift-F8
Ctrl-Shift-F7
Ctrl-Shift-5
Alt-Shift-1
Alt-Shift-2
Alt-Shift-3
Alt-Shift-4
Alt-Shift-5
Alt-Shift-6
Ctrl-Shift-6
Alt-Shift-7
Alt-Shift-8
Start debugging main project
Start debugging current file
Start debugging JUnit test on file
Stop/Continue debugging session
Run to cursor location in file
Step into/over
Step out
Go to called method
Go to calling method
Add/remove line breakpoint
Toggle breakpoint
New breakpoint
New watch
Switch to HTTP Monitor
Switch to Local Variables window
Switch to Watches window
Switch to Call Stack window
Switch to Classes window
Switch to Breakpoints window
Switch to Sessions window
Switch to Execution window
Switch to Threads window
Switch to Sources window
NetBeans IDE 4.1 Keyboard Shortcuts
Java Editor Abbreviations
En
Ex
Ob
Psf
Psfb
Psfi
Psfs
St
ab
bo
br
ca
cl
cn
df
ex
fa
fi
fl
fy
ie
im
iof
ir
pe
pr
psf
psfb
psfi
psfs
pst
pu
re
serr
sout
st
sw
sy
tds
th
Enumeration
Exception
Object
public static final
public static final boolean
public static final int
public static final String
String
abstract
boolean
break
catch (
class
continue
default:
extends
false
final
float
finally
interface
implements
instanceof
import
protected
private
private static final
private static final boolean
private static final int
private static final String
printStackTrace();
public
return
System.err.println (" ");
System.out.println (" ");
static
switch (
synchronized
Thread.dumpStack();
throws
tw
twn
wh
throw
throw new
while (
XML/DTD Editor Abbreviations
?xm
!do
!cd
!at
!el
!en
pu
sy
!no
cd
em
en
ens
fi
im
nm
nms
nn
pc
JSP/Servlet Editor Abbreviations
ag
ap
ar
cfgi
jg
jspf
jspg
jspi
jspp
jsps
jspu
oup
oupl
pcg
pcgn
pcgs
pcr
pcs
pg
pga
pgb
pgc
pgerr
pgex
pgie
pgim
pgin
pgit
pgl
pgs
rg
sg
sp
sr
tglb
application.getValue("
application.putValue("
application.removeValue("
config.getInitParameter("
<jsp:getProperty name="
<jsp:forward page="
<jsp:getProperty name="
<jsp:include page="
<jsp:plugin type="
<jsp:setProperty name="
<jsp:useBean id="
out.print("
out.println("
pageContext.getAttribute("
pageContext.getAttributeNamesInScope("
pageContext.getAttributesScope("
pageContext.removeAttribute("
pageContext.setAttribute("
<%@ page
<%@ page autoFlush="
<%@ page buffer="
<%@ page contentType="
<%@ page errorPage="
<%@ page extends="
<%@ page isErrorPage="
<%@ page import="
<%@ page info="
<%@ page isThreadSafe="
<%@ page language="
<%@ page session="
<request.getParameter("
session.getValue("
session.putValue("
session.removeValue("
<%@ taglib uri="
<?xml version="1.0" encoding="UTF-8">
<!DOCTYPE>
<![CDATA[|]]>
<!ATTLIST |>
<!ELEMENT |>
<!ENTITY |>
PUBLIC "|"
SYSTEM "|"
<!NOTATION |>
CDATA
EMPTY
ENTITY
ENTITIES
#FIXED
#IMPLIED
NMTOKEN
NMTOKENS
NOTATION
#PCDATA
To change an editor's abbreviations:
1.
2.
3.
4.
Choose Tools > Options from the main window.
Expand Editing and Editor Settings.
Select the editor.
Click the ellipsis (...) button for Abbreviations.
To change editor-specific keyboard shortcuts:
1.
2.
3.
4.
Choose Tools > Options from the main window.
Expand Editing and Editor Settings.
Select the editor.
Click the ellipsis button for Key Bindings.
To change IDE-wide keyboard shortcuts:
•
Choose Tools > Keyboard Shortcuts from the main
window.
Download