Essential Shortcuts in Eclipse, Netbeans and IntelliJ IDEA

Here is a list with the most important shortcuts, divided in three sections:

All the shortcuts are for OS X, but in the most cases, the key corresponds with Ctrl and with the Alt key on Linux or Windows.

File Navigation

Function Eclipse Netbeans Idea
Delete a line Backspace or
D
E Backspace
Go to line L ctrl G L
Duplicate line Down or
Up
Down or
Up
D
Move up a line Up ctrl Up* Up
Move down a line Down ctrlDown* Down
Toggle uppercase X U then U U
Toggle lowercase Y U then L U
Move the cursor to the previous/next word Left
Right
Move the cursor to the start/end of the line Left
Right

* not working on OS X in the 8.0.2 NetBeans release

Search

Function Eclipse Netbeans Idea
Search within a file ⌘ F
Search within a project ctrlH F
(select the project)
F
Search everywhere ctrl H
(select the scope)
F Double-press
Find class or file by name R O O or
Shift O

Code Assistance

Function Eclipse Netbeans Idea
invoke code completion ctrl space
Organize imports (Java) Shift O Shift I Ctrl O
assign value to a new variable 1 Enter
(select the option to create a new variable)
Enter
(select the option to introduce local variable)
comment or uncomment a line or fragment of code Shift C Slash
Slash
(only on a keyboard with numeric pad)
Slash
Alt Slash