How Eclipse uses and tricks 27: Define your own high-speed associative words

Source: Internet
Author: User

One day when debugging the code. Although it is Android project or the custom input syso. And then alt+/a little bit.

Next to the colleague asked, what is the tag of this log printout.

Then asked why Syso can intelligently associate this. The first question is a very good answer, but I really can't answer the second question. The first time in college to see a senior use this skill, then silently remember. I didn't think much of what was going on.

These two days have been a bit of attention. It turns out to be something like a Java code template. In a think about why don't customize Android's Lenovo Word.

。。


Step one: Open preference. Search Editor, choose Java Editor, this time to find Sysout can see its definition


Step Two: This time we define our own Android log printing, choose New, enter the string you see. Notice that the middle section is similar to the one that mimics sysout, and wants to be the meaning of the cursor moving here.

watermark/2/text/ahr0cdovl2jsb2cuy3nkbi5uzxqvbwf5ymvfd2luzgxlyxzl/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma== /dissolve/70/gravity/southeast ">
Step three: Verify, enter Loe, press and hold alt+/, self-generated such as the following see the code, and the cursor is still there


Very quick to have wood there. No longer need to debug the output of a sentence log for half a day, and also with the function of the call stack Oh.

Previous article, Eclipse Usage tips and tricks 26: Talking about shortcut keys:
http://blog.csdn.net/maybe_windleave/article/details/24058223

Next article, Eclipse usage tips and tricks 28: Eclipse Plugin Easy Explore for this life:
http://blog.csdn.net/maybe_windleave/article/details/44900199

How Eclipse uses and tricks 27: Define your own high-speed associative words

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.