shortcut keys for eclipse

The way to quickly multi-line comment in eclipse

1. Select the area you want to comment, use ctrl+shift+C to add // comment
2. Select the thing you want to comment first, use shit+ctrl+/ to add /* */ comment
3. To modify For the shortcut keys of commands in eclispe, we just need to enter windows -> preference -> General -> key settings (turn)

Supplement: Select the area to be commented, ctrl+/ will add // comment 2010/09/13

After selecting, ctrl+shift+\, remove the comment of the selected part

(Turn) A list of all shortcut keys in myeclipse is attached: Ctrl+1 quick fix (the most classic shortcut key, needless to say) Ctrl+D: delete 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 and increase) Alt+↓ The interaction position between the current line and the next line (especially practical, you can save the first cut and paste) Alt+↑ The current line and the above line interactive position (same as above ) Alt+← Previous edited page Alt+→ Next edited page (of course for the above one) Alt+Enter Display the properties of the currently selected resource (project, or file or file) Shift+Enter in the current line Insert a blank line in the next line (the mouse can be at any position in the current line, not necessarily the last) Shift+Ctrl+Enter Insert a blank line in the current line (the principle is the same as the previous one) Ctrl+Q Position to the last edit place Ctrl+ L locates on a certain line (good news for those with more than 100 programs) Ctrl+M maximizes the current Edit or View (and vice versa) Ctrl+/ Comments the current line, presses again to uncomment Ctrl+O Quickly displays OutLine Ctrl+T Quickly display the inheritance structure of the current class Ctrl+W Close the current Editor Ctrl+K Refer to the selected Word to quickly navigate to the next Ctrl+E Quickly display the drop-down list of the current Editor (if the current page is not displayed in bold) Ctrl+ /(Keypad) Collapse all code in the current class 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Ctrl+× (keyboard) Expand all the codes in the current class Ctrl+Space The code assistant completes the insertion of some codes (but generally it conflicts with the input method, you can modify the hotkey of the input method, or you can temporarily use Alt+/ instead) Ctrl +Shift+E Displays the manager that manages all currently opened Views (can choose to close, activate, etc.) Ctrl+J Forward incremental search (after pressing Ctrl+J, each letter editor you enter will be Provides quick matching to locate a word. If not, it will be displayed in the stutes line that it is not found. When looking up a word, it is especially useful. Idea has this function two years ago) Ctrl+Shift+J Reverse incremental search (Same as the previous one, just check from back to front) Ctrl+Shift+F4 Close all open editors Ctrl+Shift+X Change all the currently selected text to lowercase Ctrl+Shift+Y Change all the currently selected text to lowercase Format the current code for lowercase Ctrl+Shift+F Ctrl+Shift+P Locate to the matching character (such as {}) (when positioning from the front to the back, the cursor should be in the matching character, from the back to the front, and vice versa) below Shortcut keys are commonly used in refactoring, I like to sort out the ones I like and commonly use (Note: The shortcut keys for general refactoring all start with Alt+Shift) Alt+Shift+R Rename (my favorite is to use it ) One of them, especially the Rename of variables and classes, 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 muddy code Useful) Alt+Shift+C Modify the function structure (more practical, there are N functions calling this method, modify it once) 
 
 
 
 
 
 
 
 
 

 
 
 
 
Alt+Shift+L Extract local variables (you can directly extract some magic numbers and strings into a variable, especially when calling multiple times) Alt+Shift+F Change the local variable in the Class into a field variable (more practical Function) Alt+Shift+I Merge variables (it may be a bit inappropriate to say this Inline) Alt+Shift+V Move functions and variables (not very commonly used) Alt+Shift+Z Refactoring regret medicine (Undo) Edit scope function shortcut keys Global Find and Replace Ctrl+F Text Editor Find Previous Ctrl+Shift+K Text Editor Find Next Ctrl+K Global Undo Ctrl+Z Global Copy Ctrl+C Global Redo Previous Selection Alt+Shift+↓ Global Cut Ctrl + XGlobal Quick Fix Ctrl1+1Global Content Assist Alt+/ Global Select All Ctrl+ AGlobal DeleteDeleteGlobal Context InformationAlt+? Alt+Shift+? Ctrl+Shift+Space Java editor shows tooltip description F2 Java editor selects encapsulated element Alt+Shift+↑ Java editor selects previous element Alt+Shift+← Java editor selects next element Alt+Shift+→ text Editor Incremental Find Ctrl+J 
 
 
 
 

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
Text Editor Incremental Reverse Find Ctrl+Shift+J Global Paste Ctrl+V Global Redo Ctrl + Y View Scope Function Shortcuts EditorCtrl+ Shift+WGlobalPreviousEditorCtrl+Shift+F6GlobalPreviousViewCtrl +Shift+F7GlobalPreviousPerspectiveCtrl +Shift+F8GlobalNextEditorCtrl +F6GlobalNextViewCtrl + F7 Global Next Perspective Ctrl+F8 Text Editor Show Ruler Context Menu Ctrl+W Global Show View Menu Ctrl+F10 Global Show System Menu Alt+- Navigation Scope Function Shortcut 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 Global Open Resource Ctrl+Shift+R Global Back History Alt+← Global Forward History Alt+→ 
 
 


 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
Global Previous Ctrl+, Global Next Ctrl+. Java Editor Show Outline Ctrl+O Global Open in Hierarchy Type Ctrl+Shift+H Global Go To Matching Brackets Ctrl+Shift+P Global Go To Previous Edit Position Ctrl+Q Java Editor Go To Previous Member Ctrl+Shift+↑ Java Editor Go To Next Member Ctrl+Shift+↓ Text Editor Go To Line Ctrl+L Search Scope Function Shortcut Global Appears In File Ctrl+Shift+U Open Globally Search Dialog Ctrl+H Declaration in Global Workspace Ctrl+G Reference in Global Workspace Ctrl+Shift+G Text Editing Scope Function Shortcut Text Editor Rewrite Toggle Insert Text Editor Scroll Up Ctrl+↑ Text Editor Scroll down Ctrl+↓ File scope functionShortcut key Global saveCtrl+X Ctrl+ SGlobal printCtrl+PGlobal closeCtrl+F4Global save allCtrl+Shift+ SGlobal close allCtrl+Shift+F4Global propertiesAlt+Enter Global New Ctrl+N 
 
 
 
 
 
 
 
 


 
 
 
 
 
 


 
 
 
 
 


 
 
 
 
 
 
 
 
 
 


Project Scope Function Shortcut Global Build All Ctrl+B Source Scope Function Shortcut Java Editor Format Ctrl+Shift+F Java Editor Uncomment Ctrl+\ Java Editor Comment Ctrl+/ Java Editor Add Import Ctrl+Shift +M Java editor organization import Ctrl+Shift+O Java editor uses try/catch blocks to surround the unset, which is too commonly used, so it is listed here, it is recommended to set it yourself. It can also be corrected automatically using Ctrl+1. Run Scope Function Shortcuts Global Single Step Return F7 Global Step Skip F6 Global Step Into F5 Global Step Into Select Ctrl+F5 Global Debug Last Start F11 Global Continue F8 Global Single Step Using Filter Shift+ F5 Global Add/Remove Breakpoints Ctrl+Shift+B Global Display Ctrl+D Global Run Last Start Ctrl+F11 Global Run to Line Ctrl+R Global Execute Ctrl+U Refactoring Scope Function Shortcuts Global Undo Refactoring Alt+ Shift+Z global extraction method Alt+Shift+M 
 
 


 
 
 
 
 
 
 
 
 


 
 
 
 
 
 
 
 
 
 
 
 
 
 


 
 
 
 
Global Extract Local Variables Alt+Shift+L Global Inline Alt+Shift+I Global Move Alt+Shift+V Global Rename Alt+Shift+R 
 
 
 

Global redo Alt+Shift+Y

Go to: http://www.blogjava.net/waterjava/archive/2011/03/23/346806.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325373989&siteId=291194637