NetBeans 8 (Windows)

Java Editor Code Templates

short

sh

All hotkeys for NetBeans 8 (Windows)

General Keyboard Shortcts
Search word at insert point

Ctrl + F3

General Keyboard Shortcts
Find next/previous in file

F3 / Shift + F3

General Keyboard Shortcts
Find/Replace in file

Ctrl + F / H

General Keyboard Shortcts
Find usages

Alt + F7

General Keyboard Shortcts
Find/replace in projects

Ctrl + Shift + F / H

General Keyboard Shortcts
Find usages results

Alt + Shift + U

General Keyboard Shortcts
Turn off search result highlights

Alt + Shift + H

General Keyboard Shortcts
Rename

Ctrl + R

General Keyboard Shortcts
Convert selection to uppercase

Ctrl + U , then U

General Keyboard Shortcts
Convert selection to lowercase

Ctrl + U , then L

General Keyboard Shortcts
Toggle case of selection

Ctrl +U, then S

General Keyboard Shortcts
Paste formatted

Ctrl + Shift + V

General Keyboard Shortcts
Show Clipboard History

Ctrl + Shift + D

General Keyboard Shortcts
Jump to quick search field

Ctrl + I

General Keyboard Shortcts
Copy file path

Alt + Shift + L

General Keyboard Shortcts
Go to type/file

Ctrl + O / Alt + Shift + O

General Keyboard Shortcts
Go to JUnit test

Ctrl + Shift + T

General Keyboard Shortcts
Go to source

Ctrl + Shift + B

General Keyboard Shortcts
Go to declaration

Ctrl + B

General Keyboard Shortcts
Go to line

Ctrl + G

General Keyboard Shortcts
Toggle add/remove bookmark

Ctrl + Shift + M

General Keyboard Shortcts
Next/previous bookmark

Ctrl + Shift + . / ,

General Keyboard Shortcts
Next/previous usage/compile error

Ctrl + . / ,

General Keyboard Shortcts
Select next/previous element

Alt + Shift + . / ,

General Keyboard Shortcts
Select in Projects/Files/Favorites

Ctrl + Shift + 1 / 2 / 3

General Keyboard Shortcts
Move caret to matching bracket

Ctrl + [

General Keyboard Shortcts
Next/previous word match

Ctrl + K / Ctrl + Shift + K

General Keyboard Shortcts
Go backward/forward/to last edit

Alt + Left Arrow / Alt + Right Arrow / Ctrl + Q

General Keyboard Shortcts
Next/previous marked occurrence

Alt + Up Arrow / Down Arrow

Coding in C/C++
Go to declaration

Alt + Shift + C

Coding in C/C++
Evaluate expression

Ctrl + F9

Coding in Java
Generate code

Alt + Insert

Coding in Java
Fix all class imports

Ctrl + Shift + I

Coding in Java
Fix selected class's import

Alt + Shift + I

Coding in Java
Format selection (Indent)

Alt + Shift + F

Coding in Java
Shift lines left/right/up/down

Alt + Shift + Arrow Keys

Coding in Java
Rectangular Selection (Toggle)

Ctrl + Shift + R

Coding in Java
Copy lines up/down

Ctrl + Shift + Arrow Up / Arrow Down

Coding in Java
Inspect members/hierarchy

Ctrl / Alt + F12

Coding in Java
Add/remove comment lines

Ctrl + Shift + C / Ctrl + /

Coding in Java
Delete current line

Ctrl + E

Java Editor Code Templates
public static void main

psvm

Java Editor Code Templates
Enumeration

En

Java Editor Code Templates
Exception

Ex

Java Editor Code Templates
public static final

Psf

Java Editor Code Templates
public static final boolean

Psfb

Java Editor Code Templates
public static final int

Psfi

Java Editor Code Templates
public static final String

Psfs

Java Editor Code Templates
String

St

Java Editor Code Templates
abstract

ab

Java Editor Code Templates
assert true

as

Java Editor Code Templates
break

br

Java Editor Code Templates
boolean

bo

Java Editor Code Templates
catch

ca

Java Editor Code Templates
class

cl

Java Editor Code Templates
continue

cn

Java Editor Code Templates
double

db

Java Editor Code Templates
default

df

Java Editor Code Templates
equal

eq

Java Editor Code Templates
extends

ex

Java Editor Code Templates
public

pu

Java Editor Code Templates
private

pr

Java Editor Code Templates
protected

pe

Java Editor Code Templates
throws

th

Java Editor Code Templates
finally

fy

Java Editor Code Templates
implements

im

Java Editor Code Templates
interface

ie

Java Editor Code Templates
throw

tw

Java Editor Code Templates
import

ir

Java Editor Code Templates
length

le

Java Editor Code Templates
System.out.println()

sout

Java Editor Code Templates
System.out.println("obj"+obj)

soutv

Java Editor Code Templates
while

wh

Java Editor Code Templates
volatile

vo

Java Editor Code Templates
instanceof

iof

Java Editor Code Templates
final

fi

Java Editor Code Templates
float

fl

Java Editor Code Templates
false

fa

Java Editor Code Templates
short

sh

Java Editor Code Templates
private static final

psf

Java Editor Code Templates
private static final boolean

psfb

Java Editor Code Templates
private static fianl int

psfi

Java Editor Code Templates
private static final String

psfs

Java Editor Code Templates
printStackTrace()

pst

Java Editor Code Templates
/**/

bcom

JSP Editor Code Templates
windows.alert()

al

JSP Editor Code Templates
break;

br

JSP Editor Code Templates
function${name}...

fun

JSP Editor Code Templates
windows.history

hi

JSP Editor Code Templates
document.write()

dw

JSP Editor Code Templates
${}equals

eq

JSP Editor Code Templates
${}false

fa

JSP Editor Code Templates
${}windows.location

lo

JSP Editor Code Templates
${}return

re

JSP Editor Code Templates
$()window

Win

JSP Editor Code Templates
${}caseCatch()

ca

JSP Editor Code Templates
catch

catch

JSP Editor Code Templates
windows.consoledebug()

cond

JSP Editor Code Templates
windows.console.info()

coni

JSP Editor Code Templates
windows.console.log()

conl

JSP Editor Code Templates
windows.console.warn()

conw

JSP Editor Code Templates
${}catch

ct

JSP Editor Code Templates
${}document

do

JSP Editor Code Templates
${}instanceof

iof

Compiling, Testing, and Running
Compile package/ file

F9

Compiling, Testing, and Running
Build main project

F11

Compiling, Testing, and Running
Clean and build main project

Shift + F11

Compiling, Testing, and Running
Set request parameters

Ctrl + Q

Compiling, Testing, and Running
Create Unit test

Ctrl + Shift + U

Compiling, Testing, and Running
Run Unit test on file/project

Ctrl + F6 / Alt + F6

Compiling, Testing, and Running
Run main project/file

F6 / Shift + F6

Opening and Toggling between Views
Switch between open documents by order used

Ctrl + Tab ( Ctrl + ` )

Opening and Toggling between Views
Maximize window (toggle)

Shift + Esc

Opening and Toggling between Views
Close selected window

Ctrl + F4 / Ctrl + W

Opening and Toggling between Views
Close all windows

Ctrl + Shift + F4

Opening and Toggling between Views
Open contextual menu

Shift + F10

Opening and Toggling between Views
Switch between open documents by order of tabs

Ctrl + Page Up / Page Down

Opening and Toggling between Views
Reopen recently closed file

Ctrl + Alt + T

Opening and Toggling between Views
Toggle between editor types

Ctrl + Alt + Page Up / Page Down

Opening and Toggling between Views
Zoom text in / out

Alt +Mouse Wheel Up / Down

Opening and Toggling between Views
Toggle Inspect Mode

Ctrl + Shift + S

Debugging
Start debugging main project

Ctrl + F5

Debugging
Start debugging current file

Ctrl + Shift + F5

Debugging
Start debugging test for file

Ctrl + Shift + F6

Debugging
Stop/Continue debugging session

Shift + F5 / F5

Debugging
Run to cursor location in file

F4

Debugging
Step into/over

F7 / F8

Debugging
Step out

Ctrl + F7

Debugging
Go to called method

Ctrl + Alt +Up

Debugging
Go to calling method

Ctrl + Alt + Arrow Down

Debugging
Evaluate expression

Ctrl + F9

Debugging
Toggle breakpoint

Ctrl + F8

Debugging
New breakpoint

Ctrl + Shift + F8

Debugging
New watch

Ctrl + Shift + F7

Similar combinations for other applications