[color=red][b]在 Android Studio 和 Sublime 3 中实测没问题。[/b][/color]
[b]How to create Live Template[/b]
In Android Studio, [File] -> [Settings...] Search [Live Templates]
[img]http://dl2.iteye.com/upload/attachment/0128/2839/df9e24c0-f6f8-346e-b2ef-22a429113443.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0128/2841/5eefdc80-3df2-3a7f-8083-e8ea8f5db935.png[/img]
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]:
[img]http://dl2.iteye.com/upload/attachment/0128/2843/f91f4d83-820d-3445-9cc7-b5f42b50f3ee.png[/img]
Then click [Define] in the above picture and select [Everywhere]:
[img]http://dl2.iteye.com/upload/attachment/0128/2845/422f814b-28bf-3ee1-a392-69c7a9c4038b.png[/img]
[b]How to use Live Template[/b]
Open or create a file and input [cnm] that is the [Abbreviation] you assigned. Then press [Tab] key to insert live template.
[img]http://dl2.iteye.com/upload/attachment/0128/2847/9d110635-018b-3c93-a5d0-45f72d739dcb.png[/img]
God will bless you.
[img]http://dl2.iteye.com/upload/attachment/0128/2849/7284556e-1dcf-3e67-b11a-b0e8b2ed1c21.png[/img]
/*
* Code is far away from bug with the animal protecting
*
*----------Dragon be here!----------/
* ┏┓ ┏┓
* ┏┛┻━━━┛┻┓
* ┃ ┃
* ┃ ━ ┃
* ┃ ┳┛ ┗┳ ┃
* ┃ ┃
* ┃ ┻ ┃
* ┃ ┃
* ┗━┓ ┏━┛
* ┃ ┃神兽保佑
* ┃ ┃代码无BUG!
* ┃ ┗━━━┓
* ┃ ┣┓
* ┃ ┏┛
* ┗┓┓┏━┳┓┏┛
* ┃┫┫ ┃┫┫
* ┗┻┛ ┗┻┛
* ━━━━━━神兽出没━━━━━━
*/
[b]How to create Live Template[/b]
In Android Studio, [File] -> [Settings...] Search [Live Templates]
[img]http://dl2.iteye.com/upload/attachment/0128/2839/df9e24c0-f6f8-346e-b2ef-22a429113443.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0128/2841/5eefdc80-3df2-3a7f-8083-e8ea8f5db935.png[/img]
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]:
[img]http://dl2.iteye.com/upload/attachment/0128/2843/f91f4d83-820d-3445-9cc7-b5f42b50f3ee.png[/img]
Then click [Define] in the above picture and select [Everywhere]:
[img]http://dl2.iteye.com/upload/attachment/0128/2845/422f814b-28bf-3ee1-a392-69c7a9c4038b.png[/img]
[b]How to use Live Template[/b]
Open or create a file and input [cnm] that is the [Abbreviation] you assigned. Then press [Tab] key to insert live template.
[img]http://dl2.iteye.com/upload/attachment/0128/2847/9d110635-018b-3c93-a5d0-45f72d739dcb.png[/img]
God will bless you.
[img]http://dl2.iteye.com/upload/attachment/0128/2849/7284556e-1dcf-3e67-b11a-b0e8b2ed1c21.png[/img]