Tuesday, 11 September 2012

Eclipse Shorcuts

Eclipse Shortcuts:

Eclipse shortcut keys helps in developing your project faster n saves ur time.

You can download Eclipse shortcuts keys table pdf file from here.
Download
You can also download Netbeans shortcuts keys table pdf file from here.
Download
 
a)General editing:
  • F12 – Focus on current editor.
  • CTRL+ L – Go to line number.
  • CTRL+ D – Delete a line.
  • CTRL +<- or -> – Move one element left or right.
  • CTRL+ M – Maximize editor.
  • CTRL+ SHIFT+ P – Go to the matching parenthesis.
b)To Edit Java:


Shortcut Description
Ctrl + 1 Quickfix; result depending on cursor position
Ctrl + Space Content assist/ code completion
Ctrl + T Show the inheritance tree of the current Java class
Ctrl + O Show all methods of the current class, press Ctrl + O again to show the inherited methods.
F12 Focuses on the editor (especially helpful if you work with Fast Views).
Ctrl + M Maximize Java editor
Ctrl + Shift + F Format source code
Ctrl + Shift + O Organize the imports; will import the missing import statements.
Ctrl + Q Go to position the cursor at the last changed position in the editor.
  • CTRL +SHIFT+ U – Find reference in file.
  • CTRL / – Comment a line.
  • F3 – Go to the declaration of the variable.
  • F4 – Show type hierarchy of on a class.
  • CTRL +T – Show inheritance tree of current token
  • SHIFT+ F2 – Show Javadoc for current element.
  • ALT+ SHIFT +Z – Enclose block in try-catch.
c) For file navigation:

Ctrl + Shift + R Open / Search for resources, e.g. files
Ctrl + Shift + T Open / Search for Types
Ctrl + E Allows to select an editor from the currently open editors
Ctrl + F8 Shortcut for switching perspectives
Alt + ← or Alt + → Go to previous/ next editor position in history
Ctrl-PageUp/PageDown Switch to previous/next editor
F3 Go to the declaration of this variable
Ctrl + Shift + P Go to the matching bracket
 ALT +<- or ALT+ -> – Go to previous or next edit positions from editor history list.

d)To Debug,Run & search:


Ctrl + . Go to the next problem / error
Ctrl + , Go to the previous problem / error
F4 on a variable Show type hierarchy
Ctrl + J , Ctrl + K Incremental search, find next
Ctrl + Shift + G Search for references in the workspace

  • CTRL +. or , – Navigate to next or previous error.
  • F5 – Step into.
  • F6 – Step over.
  • F8 – Resume
  • CTRL+ Q – Inspect.
  • CTRL+ F11 – Run last run program.
  • CTRL+ 1 – Quick fix code.
  • CTRL+ H – Java search in workspace.
  •  Alt + Shift + X - J-Run current selected class as Java application
e)For Deleting:

Shortcut Description
Ctrl + D Deletes line
Ctrl + Shift + DEL Delete until end of line
Ctrl + DEL Delete next element
Ctrl + BACKSPACE Delete previous element

f) Others:
  • Ctrl + 2, L-Assign statement to new local variable.
  •  Ctrl + 2, F-Assign statement to new field.
  •  Shift + F2-Show the Javadoc for the selected type / class / method.
  •  Alt+Shift + N + Letter-Type shortcut for the command, e.g. njc to create a new Java class or npip to create a new Plugin project.
  •  Alt + Shift + Z-Surround block with try and catch.
  •  Alt + Shift + R-Rename.
  •  Ctrl+2, R-Rename locally (in file), faster then Alt + Shift + R.
  •  Alt + Shift + T-Opens the quick refactoring menu.
 

No comments:

Post a Comment