1. Select the area you want to add comments, use ctrl+shift+C to add // comments
2. First select the equipment you want to comment, use shit+ctrl+/ and add /* */ comment
3. To correct the shortcut key format of the command in eclispe, we only need to enter windows -> preference -> General -> key settings (replace)
Supplement: Select the area to be commented, ctrl+/ will add // comment 2010/09/13
After selecting, ctrl+shift+\, remove the comments of the selected project group.
Attached a list of all shortcut keys in myeclipse:
Ctrl+1 Quick Repair (I don’t need to say more about the most classic shortcut keys)
Ctrl+D: Delete the current line
Ctrl+Alt+↓ Copy the current line to the next line (copy growth)
Ctrl+Alt+↑ Copy the current line to the previous line (copy growth)
Alt+↓ Interactive status between the current line and the following line (unprecedented and practical, you can save it from cutting first and then pasting)
Alt+↑ Interactive status of the current line and the above line (same as above)
Alt+← Previous edited page
Alt+→ The next edited page (of course, it is for the one above)
Alt+Enter Displays the properties of the currently selected data (project, or file or file)
Shift+Enter inserts blank line on the next line of the current line (this time the mouse can be in any position of the current line, not necessarily the last one)
Shift+Ctrl+Enter Insert blank lines in the current line (the principle is the same as the previous article)
Ctrl+Q Position to the last edited place
Ctrl+L is positioned in a certain line (there is a blessing for those with laws that exceed 100)
Ctrl+M Maximizes the current Edit or View (press the other way around)
Ctrl+/ Comment the current line, and then press it to invalidate the comment
Ctrl+O Quick Display OutLine
Ctrl+T quickly displays the continuous layout of the current class
Ctrl+W Enclose the current Editor
Ctrl+K Refer to the selected Word to quickly locate the next one
Ctrl+E Quickly display the drop-down list of the current Editer (if the current page is not displayed in bold)
Ctrl+/ (keyboard) collapses all codes in the current class
Ctrl+× (keyboard) Expand all codes in the current class
Ctrl+Space code assistant completes the insertion of some codes (but generally conflicts with the input method. You can correct the hotkeys of the input method, or you can temporarily use Alt+/ to replace it)
Ctrl+Shift+E Displays the communication and management device of all views currently opened by the communication and management (can choose to close, activate, etc. to operate)
Ctrl+J Forward incremental search (after pressing Ctrl+J, each letter editor you enter provides quick matches to locate a certain word. If not, it will not be found in the stutes line. It is rare and practical when searching for a word. This function Idea was available two years ago)
Ctrl+Shift+J Reverse incremental search (similar to the previous one, but it is a search from behind to front)
Ctrl+Shift+F4 Enclose all open Editors
Ctrl+Shift+X Deodorize all currently selected text in lowercase
Ctrl+Shift+Y Change all currently selected text to lowercase
Ctrl+Shift+F Layout the current code
Ctrl+Shift+P Position the matching character (for example, {}) (When the domain is positioned behind, the cursor must be in the matching character, and the back to the front, otherwise)
The following shortcut keys are commonly used in reconstruction. I like and use them to clean up (Note: Generally, the shortcut keys for reconstruction are started by Alt+Shift)
Alt+Shift+R rename (I am my favorite one, especially the Rename of variables and classes, which can save a lot of labor than manual methods)
Alt+Shift+M extraction method (This is one of the most commonly used methods in refactoring, especially for a lot of mud balls of code)
Alt+Shift+C Revise the function layout (Doujin is practical, there are N functions that call this method, and it can be corrected in one go)
Alt+Shift+L extracts local variables (you can directly extract some magic numbers and strings into one variable, especially when multiple calls are called)
Alt+Shift+F Change the local variable in Class into a field variable (a practical function of Doujin)
Alt+Shift+I merge variables (maybe it is a bit inappropriate inline)
Alt+Shift+V Move functions and variables (not very commonly used)
Alt+Shift+Z Reconstructed Repentance Medicine (Undo)
edit
Effect Domain Function Shortcut Key
Global Search and swap Ctrl+F
Text Editor Find the previous Ctrl+Shift+K
Text Editor Find the next Ctrl+K
Global Undo Ctrl+Z
Global Copy Ctrl+C
Global Restore the previous selection Alt+Shift+↓
Global Cut Ctrl+X
Global Quick Correction Ctrl1+1
Global Content Help Alt+/
Global Select Ctrl+A
Global Delete
Global High and Low Text Information Alt+?
Alt+Shift+?
Ctrl+Shift+Space
Java Editor Display Object Prompt Description F2
Java Editor Select Encapsulation Element Alt+Shift+↑
Java Editor Select the previous element Alt+Shift+←
Java Editor Select the next element Alt+Shift+→
Text Editor Incremental Lookup Ctrl+J
Text Editor Incremental Reverse Search Ctrl+Shift+J
Global Paste Ctrl+V
Global Redo Ctrl+Y
Check
Effect Domain Function Shortcut Key
Global Zoom in Ctrl+=
Global Shrink Ctrl+-
window
Effect Domain Function Shortcut Key
Global Activate Editor F12
Global Switch Editor Ctrl+Shift+W
Global Previous Editor Ctrl+Shift+F6
Global Previous View Ctrl+Shift+F7
Global Previous Perspective Ctrl+Shift+F8
Global Next Editor Ctrl+F6
Global Next View Ctrl+F7
Global Next Perspective Ctrl+F8
Text Editor Display Ruler High and Low Text Menu Ctrl+W
Global Display View Menu Ctrl+F10
Global Display System Menu Alt+-
navigation
Effect Domain Function Shortcut Key
Java Editor Open Layout Ctrl+F3
Global Open Type Ctrl+Shift+T
Global Open Type Hierarchy Layout F4
Global Open Statement F3
Global Open external javadoc Shift+F2
Global Open Information Ctrl+Shift+R
Global Retreat Historical Record Alt+←
Global History of Progress Alt+→
Global Previous Ctrl+,
Global Next Ctrl+.
Java Editor Display Program Ctrl+O
Global Open type Ctrl+Shift+H in hierarchical layout
Global Go to matching brackets Ctrl+Shift+P
Global Go to previous editing position Ctrl+Q
Java Editor Go to the previous member Ctrl+Shift+↑
Java Editor Go to the next member Ctrl+Shift+↓
Text Editor Go to Line Ctrl+L
plunder
Effect Domain Function Shortcut Key
Global present in the file Ctrl+Shift+U
Global Open the search dialog box Ctrl+H
Global Statement in Workspace Ctrl+G
Global References in Workspace Ctrl+Shift+G
Text Editing
Effect Domain Function Shortcut Key
Text Editor Rewrite Switch Insert
Text Editor Roll Up Ctrl+↑
Text Editor Scroll down Ctrl+↓
document
Effect Domain Function Shortcut Key
Global Save Ctrl+X
Ctrl+S
Global Print Ctrl+P
Global Closed Ctrl+F4
Global Save all Ctrl+Shift+S
Global All Closed Ctrl+Shift+F4
Global Attribute Alt+Enter
Global New Ctrl+N
project
Effect Domain Function Shortcut Key
Global Build Ctrl+B
source code
Effect Domain Function Shortcut Key
Java Editor Layout Ctrl+Shift+F
Java Editor Void Comment Ctrl+Java Editor Comment Ctrl+/
Java Editor Add Import Ctrl+Shift+M
Java Editor Organization Import Ctrl+Shift+O
Java Editor: Apply the try/catch block to enclose. It is not set, it is too common, so it is listed here and it is recommended to set it yourself.
You can also use Ctrl+1 to actively correct it.
run
Effect Domain Function Shortcut Key
Global single step back F7
Global Skip F6
Global Step-by-step to F5
Global Step-by-step jump to select Ctrl+F5
Global Debugging last startup F11
Global Continuing F8
Global Application filter single-step fulfillment Shift+F5
Global Add/Remove Breakpoints Ctrl+Shift+B
Global Display Ctrl+D
Global Run the previous startup Ctrl+F11
Global Run to line Ctrl+R
Global fulfillment Ctrl+U
Reconstruction
Effect Domain Function Shortcut Key
Global Undo Refactor Alt+Shift+Z
Global Extraction Method Alt+Shift+M
Global Extract 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
2. First select the equipment you want to comment, use shit+ctrl+/ and add /* */ comment
3. To correct the shortcut key format of the command in eclispe, we only need to enter windows -> preference -> General -> key settings (replace)
Supplement: Select the area to be commented, ctrl+/ will add // comment 2010/09/13
After selecting, ctrl+shift+\, remove the comments of the selected project group.
Attached a list of all shortcut keys in myeclipse:
Ctrl+1 Quick Repair (I don’t need to say more about the most classic shortcut keys)
Ctrl+D: Delete the current line
Ctrl+Alt+↓ Copy the current line to the next line (copy growth)
Ctrl+Alt+↑ Copy the current line to the previous line (copy growth)
Alt+↓ Interactive status between the current line and the following line (unprecedented and practical, you can save it from cutting first and then pasting)
Alt+↑ Interactive status of the current line and the above line (same as above)
Alt+← Previous edited page
Alt+→ The next edited page (of course, it is for the one above)
Alt+Enter Displays the properties of the currently selected data (project, or file or file)
Shift+Enter inserts blank line on the next line of the current line (this time the mouse can be in any position of the current line, not necessarily the last one)
Shift+Ctrl+Enter Insert blank lines in the current line (the principle is the same as the previous article)
Ctrl+Q Position to the last edited place
Ctrl+L is positioned in a certain line (there is a blessing for those with laws that exceed 100)
Ctrl+M Maximizes the current Edit or View (press the other way around)
Ctrl+/ Comment the current line, and then press it to invalidate the comment
Ctrl+O Quick Display OutLine
Ctrl+T quickly displays the continuous layout of the current class
Ctrl+W Enclose the current Editor
Ctrl+K Refer to the selected Word to quickly locate the next one
Ctrl+E Quickly display the drop-down list of the current Editer (if the current page is not displayed in bold)
Ctrl+/ (keyboard) collapses all codes in the current class
Ctrl+× (keyboard) Expand all codes in the current class
Ctrl+Space code assistant completes the insertion of some codes (but generally conflicts with the input method. You can correct the hotkeys of the input method, or you can temporarily use Alt+/ to replace it)
Ctrl+Shift+E Displays the communication and management device of all views currently opened by the communication and management (can choose to close, activate, etc. to operate)
Ctrl+J Forward incremental search (after pressing Ctrl+J, each letter editor you enter provides quick matches to locate a certain word. If not, it will not be found in the stutes line. It is rare and practical when searching for a word. This function Idea was available two years ago)
Ctrl+Shift+J Reverse incremental search (similar to the previous one, but it is a search from behind to front)
Ctrl+Shift+F4 Enclose all open Editors
Ctrl+Shift+X Deodorize all currently selected text in lowercase
Ctrl+Shift+Y Change all currently selected text to lowercase
Ctrl+Shift+F Layout the current code
Ctrl+Shift+P Position the matching character (for example, {}) (When the domain is positioned behind, the cursor must be in the matching character, and the back to the front, otherwise)
The following shortcut keys are commonly used in reconstruction. I like and use them to clean up (Note: Generally, the shortcut keys for reconstruction are started by Alt+Shift)
Alt+Shift+R rename (I am my favorite one, especially the Rename of variables and classes, which can save a lot of labor than manual methods)
Alt+Shift+M extraction method (This is one of the most commonly used methods in refactoring, especially for a lot of mud balls of code)
Alt+Shift+C Revise the function layout (Doujin is practical, there are N functions that call this method, and it can be corrected in one go)
Alt+Shift+L extracts local variables (you can directly extract some magic numbers and strings into one variable, especially when multiple calls are called)
Alt+Shift+F Change the local variable in Class into a field variable (a practical function of Doujin)
Alt+Shift+I merge variables (maybe it is a bit inappropriate inline)
Alt+Shift+V Move functions and variables (not very commonly used)
Alt+Shift+Z Reconstructed Repentance Medicine (Undo)
edit
Effect Domain Function Shortcut Key
Global Search and swap Ctrl+F
Text Editor Find the previous Ctrl+Shift+K
Text Editor Find the next Ctrl+K
Global Undo Ctrl+Z
Global Copy Ctrl+C
Global Restore the previous selection Alt+Shift+↓
Global Cut Ctrl+X
Global Quick Correction Ctrl1+1
Global Content Help Alt+/
Global Select Ctrl+A
Global Delete
Global High and Low Text Information Alt+?
Alt+Shift+?
Ctrl+Shift+Space
Java Editor Display Object Prompt Description F2
Java Editor Select Encapsulation Element Alt+Shift+↑
Java Editor Select the previous element Alt+Shift+←
Java Editor Select the next element Alt+Shift+→
Text Editor Incremental Lookup Ctrl+J
Text Editor Incremental Reverse Search Ctrl+Shift+J
Global Paste Ctrl+V
Global Redo Ctrl+Y
Check
Effect Domain Function Shortcut Key
Global Zoom in Ctrl+=
Global Shrink Ctrl+-
window
Effect Domain Function Shortcut Key
Global Activate Editor F12
Global Switch Editor Ctrl+Shift+W
Global Previous Editor Ctrl+Shift+F6
Global Previous View Ctrl+Shift+F7
Global Previous Perspective Ctrl+Shift+F8
Global Next Editor Ctrl+F6
Global Next View Ctrl+F7
Global Next Perspective Ctrl+F8
Text Editor Display Ruler High and Low Text Menu Ctrl+W
Global Display View Menu Ctrl+F10
Global Display System Menu Alt+-
navigation
Effect Domain Function Shortcut Key
Java Editor Open Layout Ctrl+F3
Global Open Type Ctrl+Shift+T
Global Open Type Hierarchy Layout F4
Global Open Statement F3
Global Open external javadoc Shift+F2
Global Open Information Ctrl+Shift+R
Global Retreat Historical Record Alt+←
Global History of Progress Alt+→
Global Previous Ctrl+,
Global Next Ctrl+.
Java Editor Display Program Ctrl+O
Global Open type Ctrl+Shift+H in hierarchical layout
Global Go to matching brackets Ctrl+Shift+P
Global Go to previous editing position Ctrl+Q
Java Editor Go to the previous member Ctrl+Shift+↑
Java Editor Go to the next member Ctrl+Shift+↓
Text Editor Go to Line Ctrl+L
plunder
Effect Domain Function Shortcut Key
Global present in the file Ctrl+Shift+U
Global Open the search dialog box Ctrl+H
Global Statement in Workspace Ctrl+G
Global References in Workspace Ctrl+Shift+G
Text Editing
Effect Domain Function Shortcut Key
Text Editor Rewrite Switch Insert
Text Editor Roll Up Ctrl+↑
Text Editor Scroll down Ctrl+↓
document
Effect Domain Function Shortcut Key
Global Save Ctrl+X
Ctrl+S
Global Print Ctrl+P
Global Closed Ctrl+F4
Global Save all Ctrl+Shift+S
Global All Closed Ctrl+Shift+F4
Global Attribute Alt+Enter
Global New Ctrl+N
project
Effect Domain Function Shortcut Key
Global Build Ctrl+B
source code
Effect Domain Function Shortcut Key
Java Editor Layout Ctrl+Shift+F
Java Editor Void Comment Ctrl+Java Editor Comment Ctrl+/
Java Editor Add Import Ctrl+Shift+M
Java Editor Organization Import Ctrl+Shift+O
Java Editor: Apply the try/catch block to enclose. It is not set, it is too common, so it is listed here and it is recommended to set it yourself.
You can also use Ctrl+1 to actively correct it.
run
Effect Domain Function Shortcut Key
Global single step back F7
Global Skip F6
Global Step-by-step to F5
Global Step-by-step jump to select Ctrl+F5
Global Debugging last startup F11
Global Continuing F8
Global Application filter single-step fulfillment Shift+F5
Global Add/Remove Breakpoints Ctrl+Shift+B
Global Display Ctrl+D
Global Run the previous startup Ctrl+F11
Global Run to line Ctrl+R
Global fulfillment Ctrl+U
Reconstruction
Effect Domain Function Shortcut Key
Global Undo Refactor Alt+Shift+Z
Global Extraction Method Alt+Shift+M
Global Extract 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