Eclipse Ultimate Operation Tips

Source: Internet
Author: User

  Eclipse as a Java development prerequisite software, from the user experience, or pretty general (in accordance with the initial settings), so it is necessary to make some improvements in the settings, coupled with some easy to use shortcut key mining, can let you with eclipse more handy, more efficient.

First of all, you know, general settings: Modify the type hint (Content Assist), the menu bar →window→preferences, and then follow the picture (you can follow the method of the image to set the XML and other types of files such as the prompt character).

  

After the set up, it's pretty good. Here's a big talk about two important abbreviated strings. One is Syso, press ENTER to generate the print statement directly, and the other is main, press ENTER to directly generate the main method body.

But there is still a place where the egg hurts, that is, sometimes the content of the hint is not what you want, you want to use your own input is good. But the pit daddy is you press ENTER, it will prompt the string automatically screen (sometimes press space will automatically screen). Although the online modification of Eclipse jar package source code can solve this problem, but the technical content is too high, time-consuming and laborious.

So, I am here solemnly recommend a I find out the little trick, is--press ESC ... Don't face black lines. You try to do as I say. You'll find that ESC is a magical button that works great. (And I will tell you Sogou Input method is also press ESC to cancel typing), double benefit Ah ... What a mess he is, Chinese and English, one press ESC to all disappear!!! That's how it pulls the wind ...

And then, ESC has a best partner. This is the great undo (Ctrl + Z). For example, you must often encounter such a situation. Use typing tips to quickly hit the code, sometimes accidentally eye a flower, hand shake Select the wrong hint, and then you are annoyed to press backspace start a delete ... For this kind of practice, I laugh without words. In fact, the Ctrl-Z is done once. (Don't be thankful for me, don't tell anyone I told you).

Then introduce two analysis source code structure more useful shortcut keys. The first one is alt+shift+b. , it can show you the code structure, let you quickly find the package, class, method you want.

  

  

The second one is ctrl+shift+u. This is definitely the bottom of my pressure. It's so awesome, this shortcut can show you all the locations of a variable in the code! Let you at a glance. You're still in the ctrl+f with the hard-pressed, you are out. And you have to be thankful again, fortunately met me, because this shortcut key I observed a lot of online introduction Eclipse shortcut key posts, and did not include: I can only say that this is a real failure.

  

On the Java code aspect I first said so much (the rest of the usual shortcut keys on the Internet can also find, I will not repeat ...) "What do not take the ordinary road, said is elder brother"). Here's a little bit of manipulation in HTML (or XML).

Speaking of which, I think Eclipse's support for HTML hints is still relatively slag. For example, there will be a strange phenomenon, that is, you want to enter an ID property. You will find that you enter an I and then press alt+/, which does provide an "id" for this hint entry. But if you enter the ID and press alt+/, you'll find no hint (oops digging). Similar to the type of input property, you enter Typ, and then press alt+/, the mother egg, there is only one "type= ' text '" Prompt entry, but when you enter the = after. You will find Vista, what "file", "Submit", "hidden" all have. That's a good one, isn't it? So you have to understand the urine of eclipse so you can use it well.

Then, I want to say a very good shortcut in HTML, is alt+shift+ up arrow. The function of this shortcut is to select the entire label at the current location .... It's too much! Whether you are copying and pasting, delete cut ... It's an artifact! (Of course, this is something you can use in Java code, but not much in HTML).

All right. I've already told you everything I know ... The rest of us are going to discover. There is nothing I can do to explore the secrets of Eclipse. is to press Ctrl+shift+l to open the shortcut list, one try to use, and then combine English to understand it. You can understand (long time no Chinese version).

Good luck to all of you, have the material to remember to tell me!

Eclipse Ultimate Operation Tips

Related Article

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.