(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
(ctrl+m)
Large display screen can improve productivity is known to everyone. Ctrl+m is the shortcut key for maximizing the editor window.
(Shift+enter) and Ctrl+shift+enter
Shift+enter creates a blank line below the current line, regardless of whether the cursor is at the end of the row. Ctrl+shift+enter inserts a blank line before the current line.
Alt+shift+r: Renaming
Renaming properties and methods was a hassle a few years ago, requiring a lot of searching and replacing so that the code became fragmented. Today's Java IDE provides source-processing functionality, as is eclipse. Now, the renaming of variables and methods is very simple, and you'll get used to renaming each time a better alternative name appears. To use this feature, move the mouse over the property name or method name, press Alt+shift+r, enter a new name, and then click Enter. This is done. If you rename a property in the class, you can click Alt+shift+r two times, this will call out the Source Processing dialog box, you can implement the get and set method of automatic renaming.
(15) How to get rid of the comments in the catch code block generated by eclipse the other comments from eclipse generated code let me set in "preferences" do not appear when generating code, but the generated catch code block comments I will not remove, how to solve, 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 Common shortcut keys