ALT + LEFT ARROW, RIGHT arrow to toggle tab in edit window
ALT + up and down arrows to automatically select the row of your mouse and move it up and down
Ctrl+f6 can pop up the menu, which lists the editing windows that can be toggled so that you can switch without the mouse
CTRL+F7 can switch between views, such as Edit view, output view, drawing view
Ctrl+f8 can be toggled in different viewing views, that is, switching between Java view, debug view, etc.
Ctrl+m can toggle between maximizing the current window and restoring the current window
Ctrl+e Popup Input window, you can enter the code window you want to edit, and ctrl+f6 the same function, but one is the choice of the way, one is the way of input, switch window
Ctrl+t can directly display the class diagram of the contents of the cursor, can be entered directly, and jump to the input content section
Hold down the CTRL key, then point to the variable name, the method name, and the class name to jump quickly in the source code
Ctrl + F11 Quick Execute program
Alt +/Is the most common code you should use to help
Ctrl+h Search, open the Search dialog box
The Ctrl+shift+space parameter hints that if you are in the method body at this point, the parameter hint of the method appears, and the parameters of the current cursor position are shown in bold
(1) Ctrl+space
Description: Content Assistant. Provides hints for methods, variables, parameters, Javadoc, etc.
Should be shipped in a variety of occasions, in short need to prompt the time you can press this shortcut key.
Note: Avoid the switch settings in the Input method conflict with this setting
(2) Ctrl+shift+space
Description: Variable hints
(3) ctrl+/
Description: Add/Remove//comment, in eclipse2.0, remove comment as ctrl+/
(4) ctrl+shift+/
Description: Add/* */Comment
(5) ctrl+shift+/
Description: Remove/* */Comment
(6) Ctrl+shift+f
Description: Automatic Formatting code
(7) Ctrl+1
Description: Bulk modification of variable names in source code, also available on catch blocks.
(8) Ctril+f6
Description: Interface switch
(9) Ctril+shift+m
Description: Find the package you need
(10) Ctril+shift+o
Description: Automatically introduces the required packages
(11) Ctrl+alt+s
Description: Source code to get a shortcut menu. One of the generate getters and setters and Surround with Try/catch
Blocks are more commonly used. It is recommended to add them as shortcut keys. Shortcut keys set in Windows->preferences->workbench->keys
2. List of shortcut keys
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 Replication Ctrl + C
Global Restore Previous selection alt+shift+↓
Global clipping Ctrl+x
Global Quick Fix ctrl1+1
Global Content Assist alt+/
Global all check Ctrl + A
Delete delete globally
Global context information ALT +? Alt+shift+? Ctrl+shift+space
Java Editor display tooltip description F2
Java Editor Select encapsulated element alt+shift+↑
The Java editor selects the previous element alt+shift+←
The Java editor selects the next 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 Shortcut keys
Global magnification ctrl+=
Global Shrink ctrl+-
Window
scope function Shortcut keys
Global activation Editor F12
Global Switch Editor Ctrl+shift+w
Global on an editor Ctrl+shift+f6
Globally on a view CTRL+SHIFT+F7
Global on a Perspective view Ctrl+shift+f8
Global Next editor Ctrl+f6
Global Next View Ctrl+f7
Global Next Perspective Ctrl+f8
The text editor displays the ruler context menu Ctrl+w
Global Display View menu CTRL+F10
Global Display System Menu alt+-
Navigation
scope function Shortcut keys
Java Editor Open Structure ctrl+f3
Global Open Type Ctrl+shift+t
Global Open type Hierarchy F4
Global Open claims F3
Global Open External Javadoc shift+f2
Global Open Resource Ctrl+shift+r
Global fallback history alt+←
Global forward History alt+→
Global on a CTRL +,
Global Next Ctrl +.
The Java Editor displays outline Ctrl+o
Global open type Ctrl+shift+h in the hierarchy
Global go to matching parentheses ctrl+shift+p
Global go to previous edit location Ctrl+q
The Java editor goes to the previous member Ctrl+shift+↑
The Java editor goes to the next member Ctrl+shift+↓
Text editor go to line ctrl+l
Search
scope function Shortcut keys
Global presence in file Ctrl+shift+u
Global Open Search dialog box ctrl+h
Claims in the global workspace Ctrl+g
References in the global workspace Ctrl+shift+g
Text editing
scope function Shortcut keys
Text Editor overwrite toggle Insert
Text Editor Roll Line ctrl+↑
The text editor scrolls the line ctrl+↓
File
scope function Shortcut keys
Global Save Ctrl+x Ctrl+s
Global Print Ctrl+p
Global Shutdown CTRL+F4
Global Save All Ctrl+shift+s
Global all off CTRL+SHIFT+F4
Global Properties Alt+enter
Global New CTRL + N
Project
scope function Shortcut keys
Global All Build Ctrl+b
Source
scope function Shortcut keys
Java Editor Formatting 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
The Java Editor uses try/catch blocks to surround the settings, which are too common, so it is recommended to set them up here.
You can also use ctrl+1 to automatically fix it.
Run
scope function Shortcut keys
Global single-Step return F7
Global single-Step skip F6
Global single-step jump into F5
Global single-Step jump selection Ctrl+f5
Global Debug Last started F11
Global Continue F8
Global use filters to step SHIFT+F5
Global Add/Remove breakpoints Ctrl+shift+b
Global Display Ctrl+d
Global Run last boot ctrl+f11
Global Run to row ctrl+r
Global Execution Ctrl+u
Refactoring
scope function Shortcut keys
Global Undo Refactoring Alt+shift+z
Global Extraction Method Alt+shift+m
Global decimation local variable alt+shift+l
Global inline Alt+shift+i
Global Mobile Alt+shift+v
Global Rename Alt+shift+r
Global Redo Alt+shift+y
How to get rid of comments in the catch code block generated by eclipse
Other comments on the code generated by eclipse have left me in the preferences to not appear when generating code, but the comments in the generated catch code block will not be removed. Thanks for the Java---editor--templates in the project options in Eclipse there's a try, you know what's going on.
You can remove the comment and then it will not come out.
Eclipse-related shortcut keys