[英]How to edit template in Android Studio / JetBrains IntelliJ IDEA?
I wonder to add changed "loge" template in the Android Studio editor to remove the last required param - Exception object. 我想在Android Studio编辑器中添加更改的“ loge”模板以删除最后一个必需的参数-Exception对象。 How "loge" template result looks now: 现在,“ loge”模板结果如何:
Before the dafualt template insert: 在dafualt模板之前插入:
public void doSmth() {
//start write "loge" word here
}
After the dafualt template insert: 在dafualt模板之后插入:
public void doSmth() {
Log.e(TAG, "doSmth: ", );
}
So to add template you have to follow several simple steps: 因此,要添加模板,您必须遵循几个简单的步骤:
Official documentation is here . 官方文档在这里 。
Your template in work: 您正在使用的模板:
public void doSmth() {
Log.e(TAG, "doSmth failed: ");
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.