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