Eclipse some common shortcut keys + removal // TODO Auto-generated method stub default

Here I am attaching a number of useful shortcut keys, some other less frequently used Please find yourself another blog. My own feeling is that the following quick tips for beginners to use Eclipse in most need.

1, click a class, then ctrl + o, all the methods contained in the class may be displayed

2, the adjustment code format, Ctrl + Shift + f

3, Ctrl + e, the equivalent of Android studio is declare, the role is that you can find in this package which places the variable is still used, can be implemented quickly jump View

4, Ctrl + m enlarged working area of ​​the display, the use of personal habits, single-minded when writing code applicable

5, Ctrl + / mouse comments the current line, press the Cancel

6, Ctrl + d Delete mouse row

7, Ctrl + z withdrawn (this command is generally used most of the compiler)

Finally, add a printout of common shortcuts, just enter the first letter of a sentence is about to be printed (unrelated case), then press Alt + / able to come out tips you want. Of course, if you want to prompt less, you can enter more than a few letters on it.

 

Also in our initiative to add Topics process will generate // TODO Auto-generated method stub

1, simple solution, the shortcut keys Ctrl + d

2、永久删除: Window --> Preferences -->Java -->Code Style -->Code Templates--> Code --> Method body

After selecting Method body edit the default, then remove the phrase on the line

 

Guess you like

Origin www.cnblogs.com/rhp2lmy1314/p/10926916.html