You are on page 1of 2

Highlights of NetBeans IDE 8.

0 Keyboard Shortcuts & Code Templates


Finding, Searching, and Replacing
G
G
R
F7
F/H
U
H
R
U, then U
U, then L
U, then S
V
D
I
L

Search Word at Insert Point


Find Next / Previous in File
Find and Replace in File
Find Usages
Find / Replace in Projects
Find Usages Results
Toggle 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

Navigating through Source Code


O/O
T
B
B
G
M
Period /
Comma
1/2
[
Q
Period /
Comma

Go to Type / File
Go to JUnit Test
Go to Source
Go to Declaration
Go to Line
Toggle Bookmark
Next / Previous Bookmark
Select in Projects / Files
Move Caret to Matching Bracket
Go To Last Edit Location
Select Next / Previous Element

Coding in Java
I
I

Generate Code
Fix Imports

I
F
///

R
/
F12
Shift C or /
E

Fix Import for Selected Class


Format Selection
Select Left / Right / Up / Down
Rectangular Selection (Toggle)
Copy Selection Up / Down
Inspect Members / Hierarchy
Add / Remove Comment Lines
Delete Current Line

Coding in C/C++
G
F9

Go to Declaration
Evaluate Expression

Debugging
F5
F6
F5
F5
F4
F7 / F8
F7
/
F7
F8
F8
F7

Debug Selected File


Debug Test File
Continue Debugger Session
Finish Debugger Session
Run to Cursor Location in File
Step Into / Over
Step Out
Go to Called / Calling Method
Evaluate Expression
Toggle Breakpoint
New Breakpoint
New Watch

Compiling, Testing, and Running


U
T
F6 / F6
F6 / F6
F6

Create Unit Test


Go to Unit Test
Run Unit Test on Project / File
Run Main Project / File
Debug Test File

Notes:
represents ctrl
Press fn to use function keys (e.g., F5, F6, F8)

Opening and Toggling between Views


`
Esc

Go to Previous Document
Maximize / Minimize Window
(Toggle)
W
Close Currently Selected
Window
F4
Close all Windows
D
Undock / Redock Window
(Toggle)
T
Reopen Recently Closed File
Mouse Wheel Zoom Text In / Out
Up / Down
S
Toggle Inspect Mode

Java Editor Code Templates


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.
En
Ex
Ob
Psf
Psfb
Psfi
Psfs
St
ab
as
bcom

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

Highlights of NetBeans IDE 8.0 Keyboard Shortcuts & Code Templates


bo
br
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

boolean
break;
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);

pe
pr
psf
psfb
psfi
psfs
pst
psvm
pu
re
runn
serr
sh
sout
soutv
st
su
sw
sy
tds
th
tr
trycatch
tw
vo
wh
whileit
whilen
whilexp

protected
private
private static final
private static final boolean
private static final int
private static final String
printStackTrace();
public static void main(String[] args){
}
public
return
Runnable runnable = new Runnable() {
public void run() {}};
System.err.println ("|");
short
System.out.println ("|");
System.out.println("Object = " + Object);
static
super
switch (var) { case val: break;
default: throw new AssertionError();}
synchronized
Thread.dumpStack();
throws
transient
try {}
catch (Exception e) {}
throw
volatile
while (
while (it.hasNext()) {
Object elem = (Object) it.next();}
while (en.hasMoreElements()) {
Object elem = (Object)
en.nextElement();}
while (exp) {}

JavaScript Editor Code Templates


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

window.alert(${message});
${no-indent}break;
${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

You might also like