Go to Eclipse2

Source: Internet
Author: User
Here, I will only describe some common shortcut keys that you do not know. For detailed shortcut keys, see my blog: Eclipse shortcut keys. Now, let's talk less, and immediately start to the question. Blog. csdn. nettianyazaiheruan1.alt is the content auxiliary key. When you want to write code: System. out. println (); you can first write syso and then press the shortcut key

Here, I will only describe some common shortcut keys that you do not know. For detailed shortcut keys, see my blog: Eclipse shortcut keys. Now, let's talk less, and immediately start to the question. Http://blog.csdn.net/tianyazaiheruan 1. alt/is the content secondary key; when you want to write code: System. out. println (); you can first write syso and then the shortcut key

Here, I will only describe some common shortcut keys that you do not know. For detailed shortcut keys, see my blog: Eclipse shortcut keys. Now, let's talk less, and immediately start to the question. Http://blog.csdn.net/tianyazaiheruan

1. alt +/is the content auxiliary key. If you want to write the code: System. out. println (); you can first write syso and then press alt + /(?); This shortcut is often used, and it does not need to be capitalized. Some class names won't be spelled out, even variables won't be named to help you, and the class output with this shortcut key will be automatically inverted.

Here, we will focus on the usage of this shortcut key. For more information, see window> preferences> java> Templates. How can I set the shortcut key preferences) -> General (General)-> Keys (key) can be set manually, but remember not to set hot key conflicts.

2. ctrl + shift + o: inverted package; you can quickly import multiple classes and use what is used to save memory.

3. ctrl + d: Delete; the cursor deletes the current row from the current row. If all the rows are selected, all rows are deleted. However, deleting all rows is useless, you think you can use the mouse to select whether you can directly delete the keyboard!

4. ctrl + 1: place the cursor on the red Ripple that appears during compilation to prompt for error messages and suggestions.

5. Any code with a green border can be written using the tab key.

Http://blog.csdn.net/tianyazaiheruan

6. alt + shift + s: Call out the source interface; alt + shift + R: refactor; (rename the variable or method)

7. Want to encapsulate some code into methods, OK, simple! Right-click this part of the code-Refactor-Change Menthod Singnature (extraction method) and use the main method to call this method. This path can also extract methods from the parent class (no parent class is provided to automatically create one); extract methods from the interface

8. Add comments,/**, and press enter to directly comment out the code, with some parameter annotations

9. Ctrl + alt + up and down: Up and down; alt + up and down, move the code up and down

10. Other common but not many shortcut keys

Ctrl + Shift + F4: Close all open Editer. You can also right-click a code editing window and close all (close all)Ctrl + W:Disable the current Editer

Ctrl + Shift + X:Change all selected text to lowercase

Ctrl + Shift + Y:Change all selected text to lowercase

Ctrl + Shift + F:Format the current Code

Http://blog.csdn.net/tianyazaiheruan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.