Eclipse Shortcuts Java

IDEs are an integral part of a programmer's life because it provides an easy way to develop application. Another advantage of IDE is that it supports various popular programming languages. If one has good expertise in using IDEs or editors (like Eclipse), it adds more advantages to the programmer's skill. The tool becomes handy for the programmer.

The developers must aware of the shortcuts of IDEs that make tasks easy and handy. It also saves time and effort. In this section, we will discuss the keyboard shortcuts of Eclipse IDE.

The section is for those who are intended to use Eclipse as IDE. Keyboard shortcuts are very important for comfortable and quick editing.

Keyboard Shortcuts for Eclipse IDEs

Key CombinationAction
Find and Search
Ctrl + Shift + UFind reference in file.
Ctrl + Shift + TFinds class even form JAR files.
Ctrl + Shift + RFinds any resource (file) also includes XML files.
Ctrl + Shift + GSearches the workspace for references to the selected method or variable.
Ctrl + Shift + PTo find closing brace. Place the cursor at the opening brace and use this. Or go to matching parentheses.
Ctrl + HJava search in workspace
Ctrl + Shift + F12Search repository for task
Toggle
Alt + Shift + YToggle Word Wrap
Ctrl + _Toggle split editor (horizontal)
Ctrl + {Toggle split editor (vertical)
InsertToggle overwrite
Alt + Shift + OToggle Mark Occurrence
Ctrl + Shift + InsertToggle Inset Mode
Alt + F11Toggle Full Screen
Alt + Numpad divide signToggle Folding
Ctrl + Shift + CToggle Comment
Ctrl + Shift + BToggle Breakpoint
Alt + Shift + AToggle Block Selection
Show
Ctrl + 10Show View Menu
Alt + Shift + Q, SShow view (search)
Alt + Shift + Q, YShow view (synchronize)
Alt + Shift + Q, KShow view (Task list)
Alt + Shift + Q, TShow view (type hierarchy)
Alt + Shift + Q, VShow view (variables)
Alt + Shift + Q, BShow view (breakpoints)
Alt + Shift + Q, HShow view (cheat sheets)
Alt + Shift + Q, CShow view (console)
Alt + Shift + Q, LShow view (Error log)
Alt + Shift + Q, ZShow view (History)
Alt + Shift + Q, JShow view (Javadoc)
Alt + Shift + Q, OShow view (Outline)
Alt + Shift + Q, PShow view (package explorer)
Alt + Shift + Q, XShow view (problems)
Alt + Shift + Q, DShow view
F2Show tool tip description
Alt + -Show system menu
Alt + Shift + SShow Source quick menu
Ctrl + F10Show ruler context menu
Alt + Shift + TShow refactor quick menu
Ctrl + Shift + UShow occurrence in file quick menu
Alt + Shift + WShow In…
Alt + Shift + BShow in breadcrumb
Shift + F2Show Javadoc for the current element
Ctrl + Alt + Shift + RightShow context quick view
Alt + Shift + F3Show contributing plug-in
Ctrl + TShow inheritance tree of current token
Ctrl + Shift + LShow active key bindings (Eclipse keyboard shortcuts)
Alt + Shift + Wshow a class in package explorer
Run
Alt + Shift + X, ARun Java applet
Alt + Shift + X, JRun Java application
Alt + Shift + X, ORun OSGi framework
Alt + Shift + X, RRun on server
Ctrl+ F11Run
Alt + Shift + X, QRun Ant Build
Alt + Shift + X, ERun Eclipse application
Alt + Shift + X, PRun JUnit Plugin Test
Alt + Shift + X, TRun JUnit test
Ctrl + Alt + X, GRun Gradle Test
Ctrl + F11Run last run program
Alt + Shift + XTo run Ant build file using keyboard shortcuts in Eclipse
Select
Ctrl + ASelect All
Alt + Shift + UpSelect enclosing elements
Shift + EndSelect line end
Shift + HomeSelect line start
Alt + Shift + RightSelect next element
Ctrl + Shift + RightSelect Next Word
Alt + Shift + LeftSelect previous element
Ctrl + Shift + LeftSelect previous Word
Quick Assist
Ctrl + 3Quick access
Ctrl + 2, FQuick assist - assign to field
Ctrl + 2, LQuick assist - assign to local variable
Ctrl + 2, MQuick assist - external method
Ctrl + 2, RQuick assist - rename in file
Ctrl + Shift + QQuick diff toggle
Ctrl + 1Quick fix
Ctrl + TQuick hierarchy
Ctrl + RightNext Right
Move
Ctrl + F6Next editor
Alt + F7Next page
Ctrl + F8Next perspective
Ctrl + F7Next View
Alt + PageDownNext sub tab
Ctrl + Alt + GFind text in workspace
Ctrl + Shift + Upfor navigating from member to member (variables and methods)
Ctrl + Shift + Downfor navigating from member to member (variables and methods)
Ctrl + Kfind next/ previous
Ctrl + Shift +Kfind next/ previous
Ctrl + ,Previous
Ctrl + Shift + F6Previous editor
Alt + Shift + F7Previous page
Ctrl + Shift + F8Previous perspective
Ctrl + PageUpPrevious Tab
Alt + PageUpPrevious sub tab
Ctrl + Shift + F7Previous View
Ctrl + LeftPrevious word
Ctrl + FFor find, find/replace
Ctrl + Qfor going to last edited place
Ctrl + LGo to line
Alt + Shift + VMove refactoring
Alt + DownMoves lines down
Alt + UpMove line up
Ctrl + HomeText Start
Ctrl + EndText End
Ctrl + DownScroll line down
Ctrl + UpScroll line up
EndLine end
HomeLine start
Ctrl + PageUpNavigate to the previous files from within the list of all open files.
Ctrl + PageDownNavigate to the next file from within the list of all open files.
Alt + RightGoing forth while editing
Alt + LeftGoing back while editing
F3Go to a type declaration
Ctrl + . (or -)Navigate to next or previous error
Open and Close
Ctrl + Alt + HOpen call hierarchy
F3Open declaration
Ctrl + Alt + TOpen local terminal on selection
Ctrl + Alt + Shift + MOpen manifest
Ctrl + Shit + AOpen-plugin artifact
Ctrl + Alt + Shift + F12Open remote task
Ctrl + Shift + ROpen resource
Ctrl + HOpen search dialog
Ctrl + F3Open structure
Ctrl + F12Open task
Ctrl + Shift + TOpen type
Ctrl + Shift + HOpen type in hierarchy
Ctrl + Shift + VOpen from clipboard
Alt + Shift +NOpen new Project, file, class, folder, etc.
Alt + EnterOpen properties of the current file, class, and folder.
Ctrl + EOpen a file/ quick switch editor
Ctrl + Shirt + WClosing all files
Ctrl + F4 or Ctrl + WClosing current file
Ctrl + Shift + F4Close all
Debug
F11Debug
Alt + Shift + D, ADebug Java applet
Alt + Shift + D, JDebug Java Application
Alt + Shift + D, ODebug OSGi framework
Alt + Shift + D, RDebug on server
Alt + Shift + D, QDebug Ant build
Alt + Shift + D, EDebug eclipse application
Alt + Shift + D, PDebug JUnit plugin test
Alt + Shift + D, TDebug JUnit test
Copy/ Paste/ Remove/ Delete
DeleteDelete
Ctrl + DDelete line
Ctrl + DeleteDelete next word
Ctrl + BackspaceDelete previous word
Ctrl + Shift + DeleteDelete to end of line
Ctrl + Alt + DownCopy lines
Ctrl + InsertCopy
Shift + InsertPaste
Shift + DeleteRemove all visible results
Ctrl + Shift + \Remove block comment
Alt + Shift+ URemove occurrence annotations
Ctrl + DeleteRemove Result
Shift + DeleteCut
Coverage
Ctrl + Shift + F11Coverage
Alt + Shift + E, ECoverage eclipse application
Alt + Shift + E, PCoverage JUnit plugin test
Alt + Shift + E, TCoverage JUnit Test
Alt + Shift + E, JCoverage Java application
Alt + Shift + E, RCoverage RAP JUnit Test
Alt + Shift + E, SCoverage SWT Bot Test
Alt + Shift + E, LCoverage Scala application
Alt + Shift + E, GCoverage TestNG Suite
Alt + Shift + E, NCoverage TestNG Test
Others
Ctrl + BreakTerminate Result
Ctrl + Shift + ESwitch to editor
Alt + Shift + ZSurround with quick menu
Ctrl + Alt + BSkip all break point
Ctrl + Shift + OOrganize imports
Alt + Shift + F2Plugin menu spy
Ctrl + Alt + Shift + F9Layout spy
Ctrl + Alt + Shift + UpMake landmark
Ctrl + Alt + Shift + DownMake less interesting
Ctrl + MMaximize active view or editor
Ctrl + GDeclaration in workspace
Ctrl + Shift + DDisplay
Ctrl + Alt + UpDuplicate lines
Alt + ZEdit box select box
Ctrl + UExecute
Ctrl + Numpad_AddExpand
Ctrl + Shift + Numpad_AddExpand All
Alt + Shift + LExtract local variable
Alt + Shift + MExtract method
Ctrl + ICorrect indentation
Ctrl + NNew
Alt + Shift + NNew menu
Alt + Shift + HFocus on active task
Alt + Shift + FForce return
Alt + RightForward history
Alt + shift + GGenerate code
Ctrl + JIncremental find
Ctrl + Shift + JIncremental find reverse
Alt + Shift + IInline
Ctrl + Shift + EnterInsert line above current line
Shift + EnterInsert line below current line
Ctrl + Shift + IInspect
Ctrl + Alt + JJoin lines
Ctrl + Alt + Shift + AAdd artifact to target platform
Ctrl + Shift + /Add block comment
Ctrl + Shift + MAdd import
Ctrl + Shift + NAll instances
Alt + LeftBackward history
Ctrl + BBuild All
Alt + Shift + CChange method signature
Ctrl + Numpad_SubtractCollapse
Ctrl + Shift + DivideCollapse all
Ctrl + #Commit
Ctrl + SpaceContent assist
Ctrl + Shift + SpaceContext information
Ctrl + YRedo
Ctrl + Shift + GReference in workspace
Alt + Shit + RRename- Refactor
Ctrl + Shift + Numpad_MultiplyReset structure
Alt + Shift + DownRestore last selection
Alt + Shift + F1Plugin selection spy
Ctrl + /For commenting, uncommenting lines and blocks
Ctrl + Shift + /For commenting, uncommenting lines with block comment
F4Type hierarchy
Alt + Shift + JTo add Javadoc at any place in the Java source file
Ctrl + Shift +FAutoformatting
Ctrl + SpaceType assist
Ctrl + OQuickly list all methods of the class and again Ctrl + O lists
Alt + Shift + ZEnclose block in try-catch
Ctrl + MMinimize editor
F12Focus on current editor
F6Stopover
F5Step into
F8Resume
Alt + Shift + ZEnclose block in try-catch
Ctrl + SSave current editor and build
Ctrl + Shift + SSave all
F2Rename a file, project, class, folder, etc.
F5Refresh
Ctrl + PPrint
Ctrl + +Zoom in
Ctrl + -Zoom out
Ctrl + Shift + F9Deactivate Task
Ctrl + F9Activate Task
F12Activate Editor
Ctrl + Shift + XTo upper case
Ctrl + Shift + YTo lower case
Alt + /Word completion
Shift + F5Use step filter
Ctrl + ZUndo
Ctrl + 1Use for quick fix

Except for the above keys, eclipse also allows us to create our own key combinations.

Customize Keys

In order to create a customized key, follow the steps given below:

Go to Windows menu -> Preference -> General -> Keys

Or

Press Ctrl + 3, type keys, and press Enter.

After that type Name Description, Binding, and When for the customized key.

  • Name Description: Provides the description of the key.
  • Binding: Press the keys you want to create.
  • When: It describes when the key will work.

After completing the above three steps, click on the Apply and Close button to reflect the changes.

Eclipse Shortcuts Java




Latest Courses