0% found this document useful (0 votes)
23 views3 pages

Eclipse Oxygen Ide Java Shortcuts

Uploaded by

Aslam Habeeb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views3 pages

Eclipse Oxygen Ide Java Shortcuts

Uploaded by

Aslam Habeeb
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Defkey

Eclipse cheat sheet


End Jump to end of line
Managing files and projects
Ctrl + Home Jump to beginning of source
Ctrl + N Create a new project with Wizard
Ctrl + End Jump to end of source
Ctrl + Alt + N Create a new project, file, class,
Ctrl + Left arrow / Jump one word to the left / right
etc.
Right arrow
Alt + F then . Open project, file, etc.
Ctrl + Shift + Up Jump to previous / next method
Ctrl + Shift + R Open resource file, folder or arrow / Down
project arrow
Alt + Enter Show and access file properties Ctrl + L Jump to line number
F5 Refresh content of selected Ctrl + Q Jump to last edited location
element within local file system
Ctrl + . or Ctrl + , Jump to previous / next compiler
Ctrl + S Save currently open file syntax warning or error
Ctrl + Shift + S Save all open files Ctrl + Shift + P With a bracket selected: Jump to
Ctrl + W Close currently open file matching closing or opening
bracket
Ctrl + Shift + W Close all files
Ctrl + [ or Ctrl + ] Collapse / expand current
or Ctrl + Num - method or class
Editor
Ctrl + Num * Collapse / expand all methods or
F12 Jump to the editor window classes
Ctrl + Page Down Switch to previous editor Ctrl + Up arrow / Scroll editor without changing
Ctrl + Page Up Switch to next editor Down arrow cursor position

Ctrl + M Maximize or restore current Alt + Page Up Previous sub-tab


editor window (also works with Alt + Page Down Next sub-tab
other windows)
Ctrl + E Show the list of open editors Selecting text
Ctrl + F6 Show the list of open editors, but
Shift + Left arrow / Expand selection by one
switch immediately when you
Right arrow character to the left or right
release Ctrl
Ctrl + Shift + Left Expand selection to the next or
Alt + Left arrow / Go to previous / next editor
arrow / Right previous word
Right arrow windows
arrow
Alt + - Open Editor Window Option
Shift + Up arrow / Expand selection by one line up
menu
Down arrow or down
Ctrl + F10 Show view menu
Shift + End Expand selection to end of line
Ctrl + F10 then N Show / hide line numbers
Shift + Home Expand eslection to beginning of
Ctrl + Shift + Q Show or hide the diff. column on line
the left (column that indicates
Alt + Shift + Up Expand selection to current
changes since last save)
arrow element
Ctrl + Shift + + Zoom in
Alt + Shift + Left Expand selection to previous or
Ctrl + Shift + - Zoom out arrow / Right next element
arrow
Navigation in editor window Alt + Shift + Down Reduce previously expanded
arrow selection by one step
Home Jump to beginning of indention.
Press twice to jump to beginning
of the line
Defkey
Ctrl + Shift + F Auto format all code in editor
Editing text using code formatter
Ctrl + C Copy Ctrl + / Comment / uncomment line or
Ctrl + X Cut selection (add //)

Ctrl + V Paste Ctrl + Shift + C Toggle comments

Ctrl + Z Undo last action Ctrl + Shift + / Add block comment arount
selection (add /...*/)
Ctrl + Y Redo last undone action
Ctrl + Shift + \ Remove block comment
Ctrl + D Delete line
Alt + Shift + J Add element comment (add /**
Alt + Up arrow / Move current line or selection up
... */)
Down arrow or down
Ctrl + Alt + Up Duplicate current line or
arrow / Down selection up or down Editing source code
arrow Alt + Shift + S Open "Source" menu
Ctrl + Del Delete next word Ctrl + Space Open content assist (e.g. show
Ctrl + Backspace Delete previous word available methods or field
Shift + Enter Enter line below current line names)

Shift + Ctrl + Enter Enter line above current line Ctrl + 1 Open quick fix and quick assist

Insert Switch between insert and Alt + / Suggest word completion (after
overwrite mode typing at least one letter). Press
repeatedly until reaching correct
Shift + Ctrl + Y Convert selection to lowercase
name
Shift + Ctrl + X Convert selection to uppercase
Ctrl + Shift + Insert Deactivate or activate Smart
Insert Mode (automatic
Search and replace indention, automatic brackets,
etc.)
Ctrl + F Open find and replace dialog
box
Ctrl + K Find previous occurence of the
Code information
search term Ctrl + O Show code outline or structure
Ctrl + Shift + K Find next occurence of the F2 Open class, method, or variable
search term information (show as tooltip text)
Ctrl + H Search Workspace (Java F3 Open declaration: Jump to
search, Task search, and File Declaration of selected class,
search) method, or parameter
Ctrl + J Incremental search forward F4 Open Type Hierarchy window for
Ctrl + Shift + J Incremental search backwards selected item

Ctrl + Shift + O Open a resource search dialog Ctrl + T Show or open Quick Type
to find any class Hierarchy for selected item
Ctrl + Shift + T Open type in hierarchy
Indentions and comments Ctrl + Alt + H Open call hierarchy

Tab Increase indent of selected text Ctrl + Shift + U Find occurrences of expression
in current file
Shift + Tab Decrease indent of selected text
Ctrl + Move the Open declaration or
Ctrl + I Correct indention of selected text
mouse implementation
or current line
Defkey
Ctrl + Alt + C Commit
Refactoring
Ctrl + Alt + U Update
Alt + Shift + R Rename selected element and
Ctrl + Alt + D Update to revision
all references
Ctrl + Alt + E Merge
Alt + Shift + V Move selected element to other
class or file (with complete Ctrl + Alt + T Show properties
method or class selected) Ctrl + Alt + I Add to svn:ignore
Alt + Shift + C Change method signature (with
method name selected) Last modification: 4/2/2020 [Link] PM

Alt + Shift + M Extract selection to method More information: [Link]/eclipse-oxygen-ide-


Alt + Shift + L Extract local variable: Create java-shortcuts?filter=False
and assign a variable from
Customize this PDF...
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)

Running and debugging


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

Other
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

Team (SVN Subversive)


Ctrl + Alt + S Synchronize with repository

You might also like