0%

神兽保佑 代码无BUG

在 Android Studio 和 Sublime 3 中实测没问题。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
* 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.

坚持原创及高品质技术分享,您的支持将鼓励我继续创作!