Eclipse keyboard shortcuts

Eclipse
Ctrl + N

Create a new project with Wizard

Ctrl + Alt + N

Create a new project, file, class, etc.

Alt + F then .

. Open project, file, etc.

Ctrl + ↑   Shift + R

Open resource file, folder or project

Alt + ⤶ Enter

Show and access file properties

F5

Refresh content of selected element within local file system

Ctrl + S

Save currently open file

Ctrl + ↑   Shift + S

Save all open files

Ctrl + W

Close currently open file

Ctrl + ↑   Shift + W

Close all files

Advertisement
F12

Jump to the editor window

Ctrl + Page Down

Switch to previous editor

Ctrl + Page Up

Switch to next editor

Ctrl + M

Maximize or restore current editor window (also works with other windows)

Ctrl + E

Show the list of open editors

Ctrl + F6

Show the list of open editors, but switch immediately when you release Ctrl

Alt + ←  →

Go to previous / next editor windows

Alt + -

Open Editor Window Option menu

Ctrl + F10

Show view menu

Ctrl + F10 then N

n Show / hide line numbers

Ctrl + ↑   Shift + Q

Show or hide the diff. column on the left (column that indicates changes since last save)

Ctrl + ↑   Shift + +

Zoom in

Ctrl + ↑   Shift + -

Zoom out

Advertisement
Home

Jump to beginning of indention. Press twice to jump to beginning of the line

End

Jump to end of line

Ctrl + Home

Jump to beginning of source

Ctrl + End

Jump to end of source

Ctrl + ←  →

Jump one word to the left / right

Ctrl + ↑   Shift + ↑  ↓

Jump to previous / next method

Ctrl + L

Jump to line number

Ctrl + Q

Jump to last edited location

Ctrl + .

Jump to previous / next compiler syntax warning or error

or Ctrl + ,
Ctrl + ↑   Shift + P

With a bracket selected: Jump to matching closing or opening bracket

Ctrl + [

Collapse / expand current method or class

or Ctrl + ]
or Ctrl + Num -
Ctrl + Num *

Collapse / expand all methods or classes

Ctrl + ↑  ↓

Scroll editor without changing cursor position

Alt + Page Up

Previous sub-tab

Alt + Page Down

Next sub-tab

Advertisement
↑   Shift + ←  →

Expand selection by one character to the left or right

Ctrl + ↑   Shift + ←  →

Expand selection to the next or previous word

↑   Shift + ↑  ↓

Expand selection by one line up or down

↑   Shift + End

Expand selection to end of line

↑   Shift + Home

Expand eslection to beginning of line

Alt + ↑   Shift +

Expand selection to current element

Alt + ↑   Shift + ←  →

Expand selection to previous or next element

Alt + ↑   Shift +

Reduce previously expanded selection by one step

Ctrl + C

Copy

Ctrl + X

Cut

Ctrl + V

Paste

Ctrl + Z

Undo last action

Ctrl + Y

Redo last undone action

Ctrl + D

Delete line

Alt + ↑  ↓

Move current line or selection up or down

Ctrl + Alt + ↑  ↓

Duplicate current line or selection up or down

Ctrl + Del

Delete next word

Ctrl + ⬅ Backspace

Delete previous word

↑   Shift + ⤶ Enter

Enter line below current line

↑   Shift + Ctrl + ⤶ Enter

Enter line above current line

Insert

Switch between insert and overwrite mode

↑   Shift + Ctrl + Y

Convert selection to lowercase

↑   Shift + Ctrl + X

Convert selection to uppercase

Advertisement
Ctrl + F

Open find and replace dialog box

Ctrl + K

Find previous occurence of the search term

Ctrl + ↑   Shift + K

Find next occurence of the search term

Ctrl + H

Search Workspace (Java search, Task search, and File search)

Ctrl + J

Incremental search forward

Ctrl + ↑   Shift + J

Incremental search backwards

Ctrl + ↑   Shift + O

Open a resource search dialog to find any class

⭾ Tab

Increase indent of selected text

↑   Shift + ⭾ Tab

Decrease indent of selected text

Ctrl + I

Correct indention of selected text or current line

Ctrl + ↑   Shift + F

Auto format all code in editor using code formatter

Ctrl + /

Comment / uncomment line or selection (add //)

Ctrl + ↑   Shift + /

Add block comment arount selection (add /...*/)

Ctrl + ↑   Shift + \

Remove block comment

Alt + ↑   Shift + J

Add element comment (add /** ... */)

Ctrl + Space

Open content assist (e.g. show available methods or field names)

Ctrl + 1

Open quick fix and quick assist

Alt + /

Suggest word completion (after typing at least one letter). Press repeatedly until reaching correct name

Ctrl + ↑   Shift + Insert

Deactivate or activate Smart Insert Mode (automatic indention, automatic brackets, etc.)

Advertisement
Ctrl + O

Show code outline or structure

F2

Open class, method, or variable information (show as tooltip text)

F3

Open declaration: Jump to Declaration of selected class, method, or parameter

F4

Open Type Hierarchy window for selected item

Ctrl + T

Show or open Quick Type Hierarchy for selected item

Ctrl + ↑   Shift + T

Open type in hierarchy

Ctrl + Alt + H

Open call hierarchy

Ctrl + ↑   Shift + U

Find occurrences of expression in current file

Ctrl + Mouse movement

Open declaration or implementation

Alt + ↑   Shift + R

Rename selected element and all references

Alt + ↑   Shift + V

Move selected element to other class or file (with complete method or class selected)

Alt + ↑   Shift + C

Change method signature (with method name selected)

Alt + ↑   Shift + M

Extract selection to method

Alt + ↑   Shift + L

Extract local variable: Create and assign a variable from selected expression

Alt + ↑   Shift + I

Inline selected local variables, methods or constants when possible (replaces variable with its declarations/ assignment and puts it directly into the statements)

Advertisement
Ctrl + F11

Save and launch application

F11

Debug

F5

Step into function

F6

Next step (line by line)

F7

Step out

F8

Skip to next breakpoint

Ctrl + F7

Switch forward between panels. Useful for switching back and forth between Package Explorer and Editor

Ctrl + ↑   Shift + F7

Switch backward between panels. Useful for switching back and forth between Package Explorer and Editor

Ctrl + P

Print

F1

Open Eclipse help

↑   Shift + F10

Show context menu

Ctrl + Alt + S

Synchronize with repository

Ctrl + Alt + C

Commit

Ctrl + Alt + U

Update

Ctrl + Alt + D

Update to revision

Ctrl + Alt + E

Merge

Ctrl + Alt + T

Show properties

Ctrl + Alt + I

Add to svn:ignore


Share this page on:

  Subscribe to our mailing list!

Useful technology tips and keyboard shortcuts will appear in your inbox.

Your email is kept private and we don't spam.

What is your favorite Eclipse hotkey? Do you have any useful tips for program? Let other users know below.