神兽保佑 代码无BUG

在 Android Studio 和 Sublime 3 中实测没问题。
/*
 * Code is far away from bug with the animal protecting
 *
 *----------Dragon be here!----------/
 *    ┏┓   ┏┓
 *   ┏┛┻━━━┛┻┓
 *   ┃       ┃
 *   ┃   ━   ┃
 *   ┃ ┳┛ ┗┳ ┃
 *   ┃       ┃
 *   ┃   ┻   ┃
 *   ┃       ┃
 *   ┗━┓   ┏━┛
 *     ┃   ┃神兽保佑
 *     ┃   ┃代码无BUG!
 *     ┃   ┗━━━┓
 *     ┃       ┣┓
 *     ┃       ┏┛
 *     ┗┓┓┏━┳┓┏┛
 *      ┃┫┫ ┃┫┫
 *      ┗┻┛ ┗┻┛
 * ━━━━━━神兽出没━━━━━━
 */

How to create Live Template
In Android Studio, [File] -> [Settings...] Search [Live Templates]





Then input [No Bug] for group name.
Next Select [No Bug] which you just added, this time create [Live Template].

Insert the template text and assign a [Abbreviation]:



Then click [Define] in the above picture and select [Everywhere]:



How to use Live Template
Open or create a file and input [cnm] that is the [Abbreviation] you assigned. Then press [Tab] key to insert live template.



God will bless you.




猜你喜欢

转载自yhz61010.iteye.com/blog/2405658