Pages Navigation Menu

Coding is much easier than you think

Eclipse Shortcuts for fast coding

 
eclipse shortcut

List of some Shortcuts for fast coding. Traverse below and improve your coding speed by utilizing Eclipse Shortcuts.

dwd2
Download It – eclipse.pdf

 

File navigation  Short cuts
 

Short cuts Description
Alt + Shift + nUse this shortcut key to open an new menu.
Ctrl + n  Use this  shortcut key to create a new file
Ctrl+HIf you want to search in your program and work space use this short cut .
CTRL + SHIFT + ROpen a resource. You need not know the path and just part of the file name is enough.
Ctrl +EOpen a file (editor) from within the list of all open files.
CTRL + PAGE UP or PAGE DOWNGo to previous or next edit positions from editor history list.
ALT + <- or ALT + ->If you want to close the all file in editor use this shortcut key.
Ctrl +WIf you want to close the all file in editor use this shortcut key.
Ctrl +Shift+WIf you want to close the all file in editor use this shortcut key.
F2,Alt +Shift+RIt is use for re-name  file .
Ctrl +Shift +GFind the reference variable in workspace.

 

Java Editing Short cuts
 

Short cutsDescription
Ctrl+Shift+FThis short cut use to formatting  the code .
Ctrl+SpaceType assist
Ctrl+ODisplays every one of the methods and variables in addition to methods available in the current class that’s selected.
Ctrl+Shift+O                                                            This Shortcut use for Organized  import .
Ctrl+Shift+UFind the reference of a file .
Ctrl+/,Ctrl+7Single Line comment .
Ctrl+Shift+/Add block Comment .
Ctrl+Shift+\Remove the block comment.
F3Go to the declaration of the variable
F4Show the type hierarchy of an class.
Ctrl+TShow the inheritance tree of current token .
Shift+f2Show the Java Doc for current  token.
Alt Shift ZAdd the try and catch block

 
Editing Short cuts
 

Short cutsDescription
F12Focus on current editor
Ctrl +LFind the Line number.
Ctrl+D                                     This short cut use for delete the single row.
Ctrl +MThis short cut use for maximize and minimize the editor.

 
 
Debug and  Run Eclipse short cuts
 

Short cuts                                                    Description
F11Start the Debug .
Ctrl+F11Run the last program or project.
Ctrl .Or ,To Navigate  the next and previous error .
F5Step Into.
F6Step Over.
F8Resume .
Ctrl+Q Add Inspect
Ctrl +1Quick fix code.

 
Some Extra Short cuts
 

Short cuts                                                    Description
Alt +Shift +BAdd the toggle breakpoint .
Alt +Shift+cChange the method signature .
Alt +Shift+S,RGenerate the setter and getter method .
Alt +Shift+X,JRun As java Application .
Alt +Shift+X,RRun As web application .
Alt +EnterShow The Property.
Alt +Shift+X,ARun As Applet .

 
String to StringBuffer /StringBuilder
 
In order to change the concatenation from String to StringBuffer /StringBuilder, move the cursor to the String variable, and press Ctrl +1, and select ‘Use StringBuffer//StringBuilder for string concatenation’
For eg, String s = “a”+”b”+”c”+”d”;
will change to StringBuffer sB = new StringBuffer();
sB.append(“a”);
sB.append(“b”);
sB.append(“c”);
sB.append(“d”);
String s = sB.toString();
 

One Comment

  1. Thank you realyy coool