Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Some keyboard shortcuts in Eclipse.

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 223
    Comment on it

    Eclipse provides lots of keyboard shortcuts which can save your lot of time. Here is a list of shortcuts that you might want to try out: -

     **Navigation Shortcuts**
    
    *Shortcut   Description*
    
    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
    
    
    **Search Shortcuts**    
    
    *Shortcut Description*
    
    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
    
    
    
    
    **Run Shortcuts**
    
    *Shortcut  Description*
    
    Ctrl + F11     Run last launched
    Alt + Shift + X  J     Run current selected class as Java application
    
    
    
    
    
    **Editing Shortcuts**
    
    *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.
    
    
    
    **Arrow Key Shortcuts**
    
    *Shortcut Description*
    
    Ctrl + Left     Move one element to the left
    Ctrl + Right     Move one element to the right
    Ctrl + Alt + Up/Down     Copy line
    Alt + Up / Down     Move line up / down
    Alt + Shift Up / Down     Select the previous / next syntactical element
    Ctrl + Up / Down     Scroll up / down a line in the editor
    
    
    
    **Delete Shortcuts**
    
    *Shortcut Description*
    
    Ctrl + D     Deletes line
    Ctrl + Shift + DEL     Delete until end of line
    Ctrl + DEL     Delete next element
    Ctrl + BACKSPACE     Delete previous element
    
    
    
    **Coding Shortcuts**
    
    *shortcut Description*
    
    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
    Ctrl + 2, L     Assign statement to new local variable
    Ctrl + 2, F     Assign statement to new field
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: