Download as pdf
Download as pdf
You are on page 1of 3
S$ Eclipse cheat sheet Managing files and projects Cie N Ct +Alt+N. Alt+F then Ct + Shit +R Att+ Enter Fs outs Ct + Shit +S out + w Cu + Shit + We E Fi2 Ctrl + Page Down ot + Page Up cule M CHE cult Fe Alt+ Left arrow / Right arrow Alte Cult F10 Ctr + Ft0 then N Ctrl + Shit + Ctrl + Shit ++ Ctr + Shift + Create a new project with Wizard Create a new project, fle, class, etc Open project, file, etc. Open resource fle, folder or project ‘Show and access file properties Refresh content of selected element within local fle system ‘Save currently open file Save all open files, Close currently open fle Close all files Jump to the editor window ‘Switch to previous editor ‘Switch to next editor Maximize or restore current editor ‘window (also works with other windows) ‘Show the list of open editors ‘Show the list of open editors, but switch immediately when you release Cl Go to previous / next editor windows (Open Ecitor Window Option menu ‘Show view menu ‘Show / hide line numbers ‘Show or hide the dif, column on the left (column that indicates changes since last save) Zoom in Zoom out Navigation in editor window Home End Jump to beginning of indention. Press twice to jump to beginning of the line Jump to end of line Ctrl + Home ctrl + End Ctri+ Left arrow / Right arrow tri + Shin + Up arrow / Down, Cris crri+a Ctrl+.or Ct +, Ctri+ Shit + Ctri+ for Ct +] Ctrl + Num - Ctri+ Num * Ctrl + Up arrow / Page tof Jump to beginning of source Jump to end of source Jump one word tothe left/right Jump to previous / next method Jump to line number Jump to last edited location Jump to previous / next compiler syntax warning or error With a bracket selected: Jump to ‘matching closing or opening bracket Collapse / expand current method or class Collapse / expand current method orciass Collapse / expand all methods or classes ‘Scroll editor without changing Down arrow cursor position Alt+Page Up Previous sub-tab ‘Alt+ Page Down Next sub-tab Selecting text Shit + Left arrow / Expand selection by one character Rightarrow tothe left or ight Cris Shit'+ Left Expand selection tothe next or arrow /Right previous word Shift + Up arrow Expand selection by one line up or Down arrow down Shit'+ End Expand selection to end of line Shift +Home Expand eslection to beginning of line At + Shift+ Up Expand selection to current arrow element AIt+ Shift + Let Expand selection to previous or arrow / Right next element Alt + Shift + Down arrow Reduce previously expanded selection by one step Editing text crise Copy ctri+ x cut Ctrl+V Paste cii+z Undo last action cts Redo last undone action cris D Del Alt+ Up arrow/ Move current line or selection up or Downarrow down Ctri+Alt+Up Duplicate current line or selection arrow /Down up or down Ctrl + Del Delete next word Ctri+ Backspace Delete previous word Shit'+ Enter Enter line below current line Shift + Ct + Enter Enter line above current line Insert ‘Switch between insert and, overwrite mode Shit'+Ctr+Y Convert selection to lowercase Shift'+ Ct +X Convert selection to uppercase Search and replace Ctrl+ F Open find and replace dialog box on+k Find previous occurence of the search term Cri+ Shit+K Find next eccurence of the search term ctl+H ‘Search Workspace (Java search, ‘Task search, and File search) cules Incremental search forward Cr+ ShiR+J Incremental search backwards Chri Shit'*© Open a resource search dialog to find any class Indentions and comments Tab Increase indent of selected text Shif + Tab Decrease indent of selected text cine! Correct indention of selected text or current ine Cr+ Shift +F Auto format all code in editor using ccode formatter Page 2013 Cult) Comment / uncomment line or selection (add 1) Ctr+Shitt+C Toggle comments Cll + Shit +/ Add block comment arount selection (add /..") Ctrl + Shi +\ Remove block comment Alt Shift+J Add element comment (add /* ” Editing source code AIt+ Shit'+S Open "Source" menu Cir Space Open content assist (e.g. show available methods or field names) cule Open quick fix and quick assist Ate! ‘Suggest word completion (after typing at least one letter). Press. repeatedly until reaching correct Ctl + Shift + Insert Deactivate or activate Smart Insert Mode (automatic indention, ‘automatic brackets, etc.) Code information cri+0 Show code outline o 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 c+ T Show or open Quick Type Hierarchy for selected item Ctrl+ Shit +T Open type in hierarchy Cirl+Alt+H Open call hierarchy Ctrl+ Shit'+U Find occurrences of expression in current fle Cir +Move the Open declaration or mouse implementation Refactoring Att Shit+R Rename selected element and all references Alt+Shift'+V Move selected element to other Ctrl+ Alt +! 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+Shit+L Extract local variable: Create and ‘assign a variable from selected ‘expression A+ Shift'+1 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 oul +Ft1 Save and launch application Fn Debug Fs Step into function Fs Next step (line byline) Fr Step out Fa Skip to next breakpoint Other cul +F7 Switch forward between panels. Useful for switching back and forth between Package Explorer and Editor Ctrl+ Shit +F7 Switch backward between panels, Useful for switching back and forth between Package Explorer and Editor cul+P Pent Ft Open Eclipse help Shitt+ 10 Show context menu Team (SVN Subversive) Ct +Al+S Synchronize with repository Ctl + At+C Commit Ctl+At+U Update Ctl + Ait+D Update to revision Chl+AR+E Merge Ctl+Alt+T Show properties ‘Add to svmignore Page 3013

You might also like