Eclipse usage and Tip 27: Define your own fast-associative words

Source: Internet
Author: User

One day when debugging the code, although it is Android project or the habit of input syso, and then alt+/a 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 good answer, but I really can't answer the second question. The first time in the university to see a senior use this skill, then silently remember, and did not think much of what is going on. Notice these two days, originally is similar Java code template of an east. In a wonder why don't you define your own Android's Lenovo Word ...
Step one: Open preference, search editor, select Java Editor, this time to find Sysout can see its definition


Step Two: This time we customize the log printing of Android, choose New, input string, notice that the middle segment similar to the regular expression is imitated sysout, want to be the cursor moved to here meaning


Step three: Verify that, enter Loe, press and hold alt+/, automatically generate the code shown below, and the cursor is still there


Soon Jie has wood, no longer need to debug the output of a sentence log for half a day, but also with the function of the call stack Oh.

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

Next article, Eclipse Usage and tricks 28: Eclipse plugin Easy Explore:
http://blog.csdn.net/maybe_windleave/article/details/44900199

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Eclipse usage and Tip 27: Define your own fast-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.