Você está na página 1de 2

Highlights of NetBeans IDE 8.

0 Keyboard Shortcuts & Code Templates


Finding, Searching, and Replacing

Coding in C/C++

Ctrl-F3
F3/Shift-F3
Ctrl-F/H
Alt-F7
Ctrl-Shift-F/H
Alt-Shift-U
Alt-Shift-H
Ctrl-R
Ctrl-U, then U
Ctrl-U, then L
Ctrl-U, then S
Ctrl-Shift-V
Ctrl-Shift-D
Ctrl-I
Alt-Shift-L

Alt-Shift-C
Ctrl-F9

Search word at insert point


Find next/previous in file
Find/Replace in file
Find usages
Find/replace in projects
Find usages results
Turn off search result highlights
Rename
Convert selection to uppercase
Convert selection to lowercase
Toggle case of selection
Paste formatted
Show Clipboard History
Jump to quick search field
Copy file path

Go to declaration
Evaluate expression

Coding in Java
Alt-Insert
Generate code
Ctrl-Shift-I
Fix all class imports
Alt-Shift-I
Fix selected class's import
Alt-Shift-F
Format selection
Alt-Shift Left/
Shift lines left/right/up/down
Right/Up/Down
Ctrl-Shift-R
Rectangular Selection (Toggle)
Ctrl-Shift-Up/D Copy lines up/down
Ctrl/Alt-F12
Inspect members/hierarchy
Ctrl-Shift-C/ Ctrl-/Add/remove comment lines
Ctrl-E
Delete current line

Navigating through Source Code

Compiling, Testing, and Running

Ctrl-O/Alt-Shift-O
Ctrl-Shift-T
Ctrl-Shift-B
Ctrl-B
Ctrl-G
Ctrl-Shift-M
Ctrl-Shift-Period /
Comma
Ctrl-Period /
Comma
Alt-Shift-Period /
Comma
Ctrl-Shift-1/2/3
Ctrl-[
Ctrl-K/Ctrl-Shift K
Alt-Left/AltRight/Ctrl-Q
Alt Up / Down

Go to type/file
Go to JUnit test
Go to source
Go to declaration
Go to line
Toggle add/remove bookmark
Next/previous bookmark

F9
F11
Shift-F11
Ctrl-Q
Ctrl-Shift-U
Ctrl-F6/Alt-F6
F6/Shift-F6

Next/previous usage/compile
error
Select next/previous element

Opening and Toggling between Views

Select in Projects/Files/Favorites
Move caret to matching bracket
Next/previous word match
Go backward/forward/to last
edit
Next/previous marked
occurrence

Ctrl-Tab (Ctrl-`)
Shift-Escape
Ctrl-F4/Ctrl-W
Ctrl-Shift-F4
Shift-F10
Ctrl-PgUp /
PgDown
Ctrl-Alt-T

Compile package/ file


Build main project
Clean & build main project
Set request parameters
Create Unit test
Run Unit test on file/project
Run main project/file
Switch between open
documents by order used
Maximize window (toggle)
Close selected window
Close all windows
Open contextual menu
Switch between open
documents by order of tabs
Reopen recently closed file

Ctrl-Alt-PgUp /
Toggle between editor types
PgDown
Alt-Mouse Wheel Zoom text in / out
Up / Down
Ctrl-Shift-S
Toggle Inspect Mode
Debugging
Ctrl-F5
Ctrl-Shift-F5
Ctrl-Shift-F6
Shift-F5/F5
F4
F7/F8
Ctrl-F7
Ctrl-Alt-Up
Ctrl-Alt-Down
Ctrl-F9
Ctrl-F8
Ctrl-Shift-F8
Ctrl-Shift-F7

Start debugging main project


Start debugging current file
Start debugging test for file
Stop/Continue debugging session
Run to cursor location in file
Step into/over
Step out
Go to called method
Go to calling method
Evaluate expression
Toggle breakpoint
New breakpoint
New watch

When typing in the Source Editor, generate the text in the


right-column below by typing the abbreviation that is
listed in the left-column and then pressing Tab.
Java Editor Code Templates
En
Ex
Ob
Psf
Psfb
Psfi
Psfs
St
ab
as
bcom
bo
br

Enumeration
Exception
Object
public static final
public static final boolean
public static final int
public static final String
String
abstract
assert true;
/**/
boolean
break;

Highlights of NetBeans IDE 8.0 Keyboard Shortcuts & Code Templates


ca
cl
cn
db
df
dowhile
eq
ex
fa
fcom
fi
fl
forc

fore
fori
forl
forst
forv
fy
ie
ifelse
iff
im
inst
iof
ir
le
na
newo
pe
pr

catch (
class
continue
double
default:
do {
} while (condition);
equals
extends
false
// <editor-fold></editor-fold>
final
float
for (Iterator it = collection.iterator();
it.hasNext();) {
Object elem = (Object) it.next();
}
for (Object elem : iterable) {
}
for (int i = 0; i < arr.length; i++) {}
for (int i = 0; i < lst.size(); i++) {
Object object = lst.get(i); }
for (StringTokenizer st = new
StringTokenizer(""); st.hasMoreTokens();) }
for (int i = 0; i < vct.size(); i++) {
Object object = vct.elementAt(i);}
finally{ |}
interface
if (condition){}else {
}
if (exp) {}
implements
if (exp instanceof Object) {
Object obj = (Object) exp;
instanceof
import
length
native
Object name = new Object(args);
protected
private

psf
psfb
psfi
psfs
pst
psvm

private static final


private static final boolean
private static final int
private static final String
printStackTrace();
public static void main(String[] args){
}
pu
public
re
return
runn
Runnable runnable = new Runnable() {
public void run() {}};
serr
System.err.println ("|");
sh
short
sout
System.out.println ("|");
soutv
System.out.println("Object = " + Object);
st
static
su
super
sw
switch (var) { case val: break;
default: throw new AssertionError();}
sy
synchronized
tds
Thread.dumpStack();
th
throws
tr
transient
trycatch try {}
catch (Exception e) {}
tw
throw
vo
volatile
wh
while (
whileit
while (it.hasNext()) {
Object elem = (Object) it.next();}
whilen
while (en.hasMoreElements()) {
Object elem = (Object) en.nextElement();}
whilexp while (exp) {}

JSP Editor Code Templates


al
br

window.alert(${message});
${no-indent}break;

ca
catch
cond
coni
conl
conw
ct
do
dw
else
eq
fa
forin
fun
hi
if
iof
json
lo
new
prf
re
var
win

${no-indent}case
catch (${exception}) {
${cursor}
}
window.console.debug(${debug});
window.console.info(${info});
window.console.log(${log});
window.console.warn(${warn});
${no-indent}catch
${no-indent}document
document.write(${message});
Else {
${cursor}
}
${no-indent}equals
${no-indent}false
for (var ${item} in ${object}) {
${selection}${cursor}
}
function ${name}(${parameters}) {
${selection}${cursor}
}
${no-indent}window.history
if (${expr}) {
${selection}${cursor}
}
${no-indent}instanceof
{"${field}": "${value}"}
${no-indent}window.location
${no-indent}var ${name} = new ${type}($
{arguments});
${propertyName}: function(${parameters}) {
${cursor}
},
${no-indent}return
${no-indent}var ${name} = ${value};
${no-indent}window

Você também pode gostar