神兽保佑 代码无BUG
程序员文章站
2022-05-21 09:43:31
...
在 Android Studio 和 Sublime 3 中实测没问题。
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.
/* * 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.