About shortcuts
Eclipse provides many of the operations function shortcut keys, we can very well be able to control the various functions of Eclipse keyboard:
A multi-line comments shortcuts
1. Select the area you want to add a comment, use ctrl + shift + C or ctrl + / will add a comment //
2 first thing you want to comment on, with shit + ctrl + / will be added / * * / comments
3. Repeat the above quick click will remove add comments
4. To modify the command eclispe the shortcut way we just go to windows -> preference -> General - > key is set on the line
Two, Eclipse documentation comments add shortcuts
1. For example the default document Notes:
/**
* @author XX
*
*/
2. shortcut keys: ALT + SHIFT + J
3. Modify the annotated document annotation format content, method modified in two ways:
A. Direct eclipse to be modified in the template
Open eclipse
Window-->Preferences-->Java-->Code Style --> Code Templates --> Comments --> types --> Edit
E.g:
/ **
*
* Project name: $ {project_name}
* class name: $ {type_name}
* Class Description:
* Created: the User $ {}
* Create time: $ {DATE} $ {Time}
* @version
* /
B. Write your own import a document into xml
Open eclipse
Window-->Preferences-->Java-->Code Style --> Code Templates --> Comments --> types --> import
Choose your written template .xml file
######################################################################
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment"/><template autoinsert="false" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">
/**
* Description:
* @author hp DateTime ${date} ${time}
* ${tags}
*/
</template><template autoinsert="false" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">
/**
* Description:
* @author hp DateTime ${date} ${time}
* ${tags}
*/</template><template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">
/**
* Description:
* @author hp DateTime ${date}
*
*/</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">
/**
* Class Name: ${file_name}
* Description:
* @author hp DateTime ${date} ${time}
* @company bvit
* @email [email protected]
* @version 1.0
* ${tags}
*/</template><template autoinsert="false" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">
/**
* @return get ${bare_field_name}
*/</template><template autoinsert="false" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">
/**
* Description:
* @author hp DateTime ${date} ${time}
* ${tags}
*/</template><template autoinsert="false" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">
/**
* Description:
* @author hp DateTime ${date}
* ${tags}
* ${see_to_target}
*/</template><template autoinsert="false" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">
/**
* @param ${param} set ${bare_field_name}
*/</template></templates>
######################################################################
Three, Eclipse all the list of shortcuts: (turn)
Ctrl + 1 Quick Fix (the most classic shortcut keys, needless to say)
Ctrl + D: Deletes the current line
Ctrl + Alt + ↓ Copy the current line to the next line (Copy increase)
Ctrl + Alt + ↑ Copy the current line to the previous line (Copy increase)
Alt + ↓ position of the current line and the following line of interaction (particularly useful, can be omitted to cut, and then pasted)
Alt + ↑ the current line and the top line interaction position (ibid.)
Alt + ← a former editor of the page
Alt + → next edit page (of course, for the one above it)
Alt + Enter to display the currently selected resource (engineering, or file or files) properties
Shift + Enter current row into the next line blank line (in this case a mouse can be any position of the current row, not necessarily last)
Shift + Ctrl + Enter insert a blank line in the current line (principle above article)
Ctrl + Q Last edited to locate the place
Ctrl + L positioned in a row (for more than 100 persons have program gospel)
Ctrl + M to maximize the current Edit or View (press and vice versa)
Ctrl + / comments on the current line, press the Cancel comment
Ctrl + O to quickly display OutLine
Ctrl + T to quickly display the current class inheritance structure
Ctrl + W closes the current Editer
Ctrl + K Referring to quickly locate selected next Word
Ctrl + E to quickly display the drop-down list of current Editer (if the current page does not display shown in bold)
Ctrl + / (keypad) all the current class code folding
Ctrl + × (keypad) Expand All codes in the current class
Ctrl + Space Code Assistant to complete some code inserted (but generally there is a conflict and input method, hot-key input method may be modified, also Alt + / can be replaced by temporary)
Ctrl + Shift + E Display Manager View all currently open manager (option to turn off, to activate other operations)
After the increment look forward Ctrl + J (Press Ctrl + J, you enter each letter editor provides fast matching to locate a word, if not, then at stutes line display is not found, a check when word, especially practical, this function will have two years ago Idea)
Ctrl + Shift + J reverse incremental find (and on the same strip, just forward from the back check)
Ctrl + Shift + F4 to close all open Editer
Ctrl + Shift + X to taste all of the currently selected text lowercase
Ctrl + Shift + Y to the currently selected text all lowercase
Ctrl + Shift + F to format the current code
Ctrl + Shift + P matcher for targeting of (for example, {}) (when positioned behind the front from the cursor to the character matching inside, front to back, and vice versa)
The following shortcuts are common remodeling inside, I would like to own and commonly tidy (Note: Shortcuts are usually reconstructed Alt + Shift beginning of the)
Alt + Shift + R to rename (my own favorite with a, especially variables and class Rename, than the manual method can save a lot of labor force)
Alt + Shift + M extraction method (which is one of the most commonly used inside reconstruction method, especially useful for a lot of clay in the code)
Alt + Shift + C modified structural function (more practical, with N function calls this method once get modified)
Alt + Shift + L extracting local variables (direct some magic number and character string extracting into a variable, especially when multiple calls)
Alt + Shift + F Class of the field variable become local variables (more useful features)
Alt + Shift + I merge variables (probably say something wrong Inline)
Alt + Shift + V moves functions and variables (less commonly)
Alt + Shift + Z reconstruction of regret (Undo)
edit
Scope function shortcuts
Global Find and Replace Ctrl + F
Find a text editor Ctrl + Shift + K
Text editor Find Next Ctrl + K
Global Undo Ctrl + Z
Global Copy Ctrl + C
A select Alt + Shift + ↓ on global recovery
Global Cut Ctrl + X
Global Quick Fix Ctrl1 + 1
Global content assist Alt + /
Global Select All Ctrl + A
Global delete Delete
Global Context Information Alt +?
Alt+Shift+?
Ctrl+Shift+Space
Java editor displays a tooltip describing F2
Java package editor selection element Alt + Shift + ↑
The Java Editor select an element Alt + Shift + ←
Under Java Editor select an element Alt + Shift + →
Text editor, incremental find Ctrl + J
Text editor incremental reverse lookup Ctrl + Shift + J
Global Paste Ctrl + V
Global Redo Ctrl + Y
View
Scope function shortcuts
The global gain Ctrl + =
Global narrow Ctrl + -
window
Scope function shortcuts
Global activation editor F12
Global switch editor Ctrl + Shift + W
On a global editor Ctrl + Shift + F6
On a global view Ctrl + Shift + F7
A global perspective view of the Ctrl + Shift + F8
Globally an editor Ctrl + F6
Under a global view Ctrl + F7
Ctrl + F8 perspective view of a globally
Text Editor display rulers context menu Ctrl + W
Global display the View menu Ctrl + F10
Global Display System menu Alt + -
navigation
Scope function shortcuts
Java editor open structure Ctrl + F3
Global Open Type Ctrl + Shift + T
Global open type hierarchy F4
Global open declaration F3
Global open external javadoc Shift + F2
Open the Global Resource Ctrl + Shift + R
Global history Alt + ← Back
Global History forward Alt + →
On a global Ctrl +,
Under a global Ctrl +.
Java Editor displays an outline Ctrl + O
Global Open Type Ctrl + Shift + H in the hierarchy
Go global matching brace Ctrl + Shift + P
Go on a global edit position Ctrl + Q
Go on a member of the Java editor Ctrl + Shift + ↑
Java editor, go to the next member of the Ctrl + Shift + ↓
Text Editor go row Ctrl + L
search for
Scope function shortcuts
Global appear in the file Ctrl + Shift + U
Global open the search dialog Ctrl + H
Global workspace statement Ctrl + G
Quote Ctrl + Shift + G global workspace
Text Editor
Scope function shortcuts
Insert text editor rewritten switching
Ctrl + ↑ rolling on a text editor
Under the text editor rolling Ctrl + ↓
file
Scope function shortcuts
Global saved Ctrl + X
Ctrl+S
Global Print Ctrl + P
Global Close Ctrl + F4
Global Save All Ctrl + Shift + S
Global Close All Ctrl + Shift + F4
Global Properties Alt + Enter
New Global Ctrl + N
project
Scope function shortcuts
Global Build All Ctrl + B
Source
Scope function shortcuts
Java editor to format Ctrl + Shift + F
Java editor uncommented Ctrl + \
Java editor comments Ctrl + /
Java editor to add import Ctrl + Shift + M
Java Editor organize imports Ctrl + Shift + O
Java editor using try / catch block to enclose not set too common, so listed here, set up their own proposals.
You can also use Ctrl + 1 automatic correction.
run
Scope function shortcuts
Global Step Return F7
Step over global F6
Step into the global F5
Step into the global selection Ctrl + F5
Global commissioning last start F11
Global continues to F8
Global single step using a filter Shift + F5
Global add / remove breakpoints Ctrl + Shift + B
Global Display Ctrl + D
Global run last start Ctrl + F11
Global line running to Ctrl + R
Global execution Ctrl + U
Reconstruction
Scope function shortcuts
Global revocation reconstruction Alt + Shift + Z
Global extraction method Alt + Shift + M
Global extraction local variables Alt + Shift + L
Global Inline Alt + Shift + I
Global Mobile Alt + Shift + V
Global Rename Alt + Shift + R
Global Redo Alt + Shift + Y
A multi-line comments shortcuts
1. Select the area you want to add a comment, use ctrl + shift + C or ctrl + / will add a comment //
2 first thing you want to comment on, with shit + ctrl + / will be added / * * / comments
3. Repeat the above quick click will remove add comments
4. To modify the command eclispe the shortcut way we just go to windows -> preference -> General - > key is set on the line
Two, Eclipse documentation comments add shortcuts
1. For example the default document Notes:
/**
* @author XX
*
*/
2. shortcut keys: ALT + SHIFT + J
3. Modify the annotated document annotation format content, method modified in two ways:
A. Direct eclipse to be modified in the template
Open eclipse
Window-->Preferences-->Java-->Code Style --> Code Templates --> Comments --> types --> Edit
E.g:
/ **
*
* Project name: $ {project_name}
* class name: $ {type_name}
* Class Description:
* Created: the User $ {}
* Create time: $ {DATE} $ {Time}
* @version
* /
B. Write your own import a document into xml
Open eclipse
Window-->Preferences-->Java-->Code Style --> Code Templates --> Comments --> types --> import
Choose your written template .xml file
######################################################################
<?xml version="1.0" encoding="UTF-8" standalone="no"?><templates><template autoinsert="false" context="filecomment_context" deleted="false" description="Comment for created Java files" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.filecomment" name="filecomment"/><template autoinsert="false" context="constructorcomment_context" deleted="false" description="Comment for created constructors" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name="constructorcomment">
/**
* Description:
* @author hp DateTime ${date} ${time}
* ${tags}
*/
</template><template autoinsert="false" context="methodcomment_context" deleted="false" description="Comment for non-overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name="methodcomment">
/**
* Description:
* @author hp DateTime ${date} ${time}
* ${tags}
*/</template><template autoinsert="false" context="fieldcomment_context" deleted="false" description="Comment for fields" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name="fieldcomment">
/**
* Description:
* @author hp DateTime ${date}
*
*/</template><template autoinsert="false" context="typecomment_context" deleted="false" description="Comment for created types" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.typecomment" name="typecomment">
/**
* Class Name: ${file_name}
* Description:
* @author hp DateTime ${date} ${time}
* @company bvit
* @email [email protected]
* @version 1.0
* ${tags}
*/</template><template autoinsert="false" context="gettercomment_context" deleted="false" description="Comment for getter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name="gettercomment">
/**
* @return get ${bare_field_name}
*/</template><template autoinsert="false" context="overridecomment_context" deleted="false" description="Comment for overriding methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name="overridecomment">
/**
* Description:
* @author hp DateTime ${date} ${time}
* ${tags}
*/</template><template autoinsert="false" context="delegatecomment_context" deleted="false" description="Comment for delegate methods" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name="delegatecomment">
/**
* Description:
* @author hp DateTime ${date}
* ${tags}
* ${see_to_target}
*/</template><template autoinsert="false" context="settercomment_context" deleted="false" description="Comment for setter method" enabled="true" id="org.eclipse.jdt.ui.text.codetemplates.settercomment" name="settercomment">
/**
* @param ${param} set ${bare_field_name}
*/</template></templates>
######################################################################
Three, Eclipse all the list of shortcuts: (turn)
Ctrl + 1 Quick Fix (the most classic shortcut keys, needless to say)
Ctrl + D: Deletes the current line
Ctrl + Alt + ↓ Copy the current line to the next line (Copy increase)
Ctrl + Alt + ↑ Copy the current line to the previous line (Copy increase)
Alt + ↓ position of the current line and the following line of interaction (particularly useful, can be omitted to cut, and then pasted)
Alt + ↑ the current line and the top line interaction position (ibid.)
Alt + ← a former editor of the page
Alt + → next edit page (of course, for the one above it)
Alt + Enter to display the currently selected resource (engineering, or file or files) properties
Shift + Enter current row into the next line blank line (in this case a mouse can be any position of the current row, not necessarily last)
Shift + Ctrl + Enter insert a blank line in the current line (principle above article)
Ctrl + Q Last edited to locate the place
Ctrl + L positioned in a row (for more than 100 persons have program gospel)
Ctrl + M to maximize the current Edit or View (press and vice versa)
Ctrl + / comments on the current line, press the Cancel comment
Ctrl + O to quickly display OutLine
Ctrl + T to quickly display the current class inheritance structure
Ctrl + W closes the current Editer
Ctrl + K Referring to quickly locate selected next Word
Ctrl + E to quickly display the drop-down list of current Editer (if the current page does not display shown in bold)
Ctrl + / (keypad) all the current class code folding
Ctrl + × (keypad) Expand All codes in the current class
Ctrl + Space Code Assistant to complete some code inserted (but generally there is a conflict and input method, hot-key input method may be modified, also Alt + / can be replaced by temporary)
Ctrl + Shift + E Display Manager View all currently open manager (option to turn off, to activate other operations)
After the increment look forward Ctrl + J (Press Ctrl + J, you enter each letter editor provides fast matching to locate a word, if not, then at stutes line display is not found, a check when word, especially practical, this function will have two years ago Idea)
Ctrl + Shift + J reverse incremental find (and on the same strip, just forward from the back check)
Ctrl + Shift + F4 to close all open Editer
Ctrl + Shift + X to taste all of the currently selected text lowercase
Ctrl + Shift + Y to the currently selected text all lowercase
Ctrl + Shift + F to format the current code
Ctrl + Shift + P matcher for targeting of (for example, {}) (when positioned behind the front from the cursor to the character matching inside, front to back, and vice versa)
The following shortcuts are common remodeling inside, I would like to own and commonly tidy (Note: Shortcuts are usually reconstructed Alt + Shift beginning of the)
Alt + Shift + R to rename (my own favorite with a, especially variables and class Rename, than the manual method can save a lot of labor force)
Alt + Shift + M extraction method (which is one of the most commonly used inside reconstruction method, especially useful for a lot of clay in the code)
Alt + Shift + C modified structural function (more practical, with N function calls this method once get modified)
Alt + Shift + L extracting local variables (direct some magic number and character string extracting into a variable, especially when multiple calls)
Alt + Shift + F Class of the field variable become local variables (more useful features)
Alt + Shift + I merge variables (probably say something wrong Inline)
Alt + Shift + V moves functions and variables (less commonly)
Alt + Shift + Z reconstruction of regret (Undo)
edit
Scope function shortcuts
Global Find and Replace Ctrl + F
Find a text editor Ctrl + Shift + K
Text editor Find Next Ctrl + K
Global Undo Ctrl + Z
Global Copy Ctrl + C
A select Alt + Shift + ↓ on global recovery
Global Cut Ctrl + X
Global Quick Fix Ctrl1 + 1
Global content assist Alt + /
Global Select All Ctrl + A
Global delete Delete
Global Context Information Alt +?
Alt+Shift+?
Ctrl+Shift+Space
Java editor displays a tooltip describing F2
Java package editor selection element Alt + Shift + ↑
The Java Editor select an element Alt + Shift + ←
Under Java Editor select an element Alt + Shift + →
Text editor, incremental find Ctrl + J
Text editor incremental reverse lookup Ctrl + Shift + J
Global Paste Ctrl + V
Global Redo Ctrl + Y
View
Scope function shortcuts
The global gain Ctrl + =
Global narrow Ctrl + -
window
Scope function shortcuts
Global activation editor F12
Global switch editor Ctrl + Shift + W
On a global editor Ctrl + Shift + F6
On a global view Ctrl + Shift + F7
A global perspective view of the Ctrl + Shift + F8
Globally an editor Ctrl + F6
Under a global view Ctrl + F7
Ctrl + F8 perspective view of a globally
Text Editor display rulers context menu Ctrl + W
Global display the View menu Ctrl + F10
Global Display System menu Alt + -
navigation
Scope function shortcuts
Java editor open structure Ctrl + F3
Global Open Type Ctrl + Shift + T
Global open type hierarchy F4
Global open declaration F3
Global open external javadoc Shift + F2
Open the Global Resource Ctrl + Shift + R
Global history Alt + ← Back
Global History forward Alt + →
On a global Ctrl +,
Under a global Ctrl +.
Java Editor displays an outline Ctrl + O
Global Open Type Ctrl + Shift + H in the hierarchy
Go global matching brace Ctrl + Shift + P
Go on a global edit position Ctrl + Q
Go on a member of the Java editor Ctrl + Shift + ↑
Java editor, go to the next member of the Ctrl + Shift + ↓
Text Editor go row Ctrl + L
search for
Scope function shortcuts
Global appear in the file Ctrl + Shift + U
Global open the search dialog Ctrl + H
Global workspace statement Ctrl + G
Quote Ctrl + Shift + G global workspace
Text Editor
Scope function shortcuts
Insert text editor rewritten switching
Ctrl + ↑ rolling on a text editor
Under the text editor rolling Ctrl + ↓
file
Scope function shortcuts
Global saved Ctrl + X
Ctrl+S
Global Print Ctrl + P
Global Close Ctrl + F4
Global Save All Ctrl + Shift + S
Global Close All Ctrl + Shift + F4
Global Properties Alt + Enter
New Global Ctrl + N
project
Scope function shortcuts
Global Build All Ctrl + B
Source
Scope function shortcuts
Java editor to format Ctrl + Shift + F
Java editor uncommented Ctrl + \
Java editor comments Ctrl + /
Java editor to add import Ctrl + Shift + M
Java Editor organize imports Ctrl + Shift + O
Java editor using try / catch block to enclose not set too common, so listed here, set up their own proposals.
You can also use Ctrl + 1 automatic correction.
run
Scope function shortcuts
Global Step Return F7
Step over global F6
Step into the global F5
Step into the global selection Ctrl + F5
Global commissioning last start F11
Global continues to F8
Global single step using a filter Shift + F5
Global add / remove breakpoints Ctrl + Shift + B
Global Display Ctrl + D
Global run last start Ctrl + F11
Global line running to Ctrl + R
Global execution Ctrl + U
Reconstruction
Scope function shortcuts
Global revocation reconstruction Alt + Shift + Z
Global extraction method Alt + Shift + M
Global extraction local variables Alt + Shift + L
Global Inline Alt + Shift + I
Global Mobile Alt + Shift + V
Global Rename Alt + Shift + R
Global Redo Alt + Shift + Y