Eclipse : All Shortcut Keys

MANAGE FILES and PROJECTS

Shortcut KeysFunctions
Ctrl + NCreate new project using the Wizard
Alt + F, then .Open project, file, etc
Ctrl + Shift + ROpen Resource
Alt + EnterShow and access file properties
Ctrl + SSave current file
Ctrl + Shift + SSave all files
Ctrl + WClose current file
Ctrl + Shift + WClose all files
F5Refresh content of selected element with local file system


EDITOR WINDOW
(Cursor should be in Editor Window for these to work)


Shortcut KeysFunctions
F12Jump to Editor
Ctrl + PageDown / Ctrl + Page UpSwitch to next editor / switch to previous editor
Ctrl + MMaximize or un-maximize current Editor Window
Ctrl + EShow list of open Editors
Alt + Arrow LeftGo to previous Editor Window
Alt + Arrow RightGo to next Editor Window
Alt + -Open Editor Window Option menu
Ctrl + F10Show view menu
Ctrl + F10, then nShow or hide line numbers
Ctrl + Shift + QShow or hide the diff column on the left (indicates changes since last save)
Home/EndJump to beginning / jump to end of indention. Press home twice to jump to beginning of line
Ctrl + Home/EndJump to beginning / jump to end of source
Ctrl + Arrow Right/Arrow LeftJump one word to the left / one word to the right
Ctrl + Shift + Arrow Down/Arrow UpJump to previous / jump to next method
Ctrl + LJump to Line Number. To hide/show line numbers, press ctrl + F10 and select 'Show Line Numbers'
Ctrl + QJump to last location edited
Ctrl + ./Ctrl + ,Jump to next / jump to previous compiler syntax warning or error
Ctrl + Shift + PWith a bracket selected: jump to the matching closing or opening bracket
Ctrl + [ + ]/Ctrl + - on numeric keyboardCollapse / Expand current method or class
Ctrl + [/]/Ctrl + * on numeric keyboardCollapse / Expand all methods or classes
Ctrl + Arrow Down/Ctrl + Arrow UpScroll Editor without changing cursor position
Alt + Page Up/Alt + Page DownNext Sub-Tab / Previous Sub-Tab


TEXT

Shortcut KeysFunctions
Shift + Arrow Right/Arrow LeftExpand selection by one character to the left / to the right
Ctrl + Shift + Arrow Right/Arrow LeftExpand selection to next / previous word
Shift + Arrow Down/Arrow UpExpand selection by one line down / one line up
Shift + End/HomeExpand selection to end / to beginning of line
Ctrl + ASelect all
Alt + Shift + Arrow UpExpand selection to current element (e.g. current one-line expression or content within brackets)
Alt + Shift + Arrow Left/Arrow RightExpand selection to next / previous element
Alt + Shift + Arrow DownReduce previously expanded selection by one step
Ctrl + C/Ctrl + X/Ctrl + VCut, copy and paste
Ctrl + ZUndo last action
Ctrl + YRedo last (undone) action
Ctrl + DDelete Line
Alt + Arrow Up/Arrow DownMove current line or selection up or down
Ctrl + Alt + Arrow Up/Ctrl + Alt + Arrow Down/Duplicate current line or selection up or down
Ctrl + DeleteDelete next word
Ctrl + BackspaceDelete previous word
Shift + EnterEnter line below current line
Shift + Ctrl + EnterEnter line above current line
InsertSwitch between insert and overwrite mode
Shift + Ctrl + YChange selection to all lower case
Shift + Ctrl + XChange selection to all upper case
SEARCH AND REPLACE
Ctrl + FOpen find and replace dialog
Ctrl + K / Ctrl + Shift + KFind previous / find next occurrence of search term
Ctrl + HSearch Workspace
Ctrl + Shift + OOpen a resource search dialog to find any class




Download our Android App Best Computer Guide 



INDENTIONS and COMMENTS

Shortcut KeysFunctions
Tab/Shift + TabIncrease / decrease indent of selected text
Ctrl + ICorrect indention of selected text or of current line
Ctrl + Shift + FAutoformat all code in Editor using code formatter
Ctrl + /Comment / uncomment line or selection ( adds '//' )
Ctrl + Shift + /Add Block Comment around selection ( adds '/...' )
Ctrl + Shift + \Remove Block Comment
Alt + Shift + JAdd Element Comment ( adds '')


EDIT CODE

Shortcut KeysFunctions
Ctrl + SpaceOpens Content Assist (e.g. show available methods or field names)
Ctrl + 1Open Quick Fix and Quick Assist
Alt + /Propose word completion (after typing at least one letter). Repeatedly press alt + / until reaching correct name
Ctrl + Shift + InsertDeactivate or activate Smart Insert Mode (automatic indention, automatic brackets, etc.)


CODE INFO

Shortcut KeysFunctions
Ctrl + OShow code outline / structure
F2Open class, method, or variable information (tooltip text)
F3Open Declaration: Jump to Declaration of selected class, method, or parameter
F4Open Type Hierarchy window for selected item
Ctrl + TShow / open Quick Type Hierarchy for selected item
Ctrl + Shift + TOpen Type in Hierarchy
Ctrl + Alt + HOpen Call Hierarchy
Ctrl + Shift + UFind occurrences of expression in current file
Ctrl + move over methodOpen Declaration or Implementation


REFACTOR

Shortcut KeysFunctions
Alt + Shift + RRename selected element and all references
Alt + Shift + VMove selected element to other class or file
Alt + Shift + MExtract selection to method
Alt + Shift + LExtract local variable


RUN and DEBUG CODE

Shortcut KeysFunctions
Ctrl + F11Save and launch application
F11Debug
F5Step Into function
F6Next step
F7Step out
F8Skip to next Breakpoint


OTHERS/MISC

Shortcut KeysFunctions
Ctrl + F7/Ctrl + Shift + F7Switch Forward / Backward between Panels
Ctrl + F8/Ctrl + Shift + F8Switch Forward / Backward between Perspectives
Ctrl + PPrint
F1Open Eclipse Help
Shift + F10Show Right Click Context Menu

No comments:

Post a Comment