View AndroidLogKotlin.xml
<templateSet group="AndroidLogKotlin">
<template name="logd" value="android.util.Log.d(&quot;$CLASS_NAME$&quot;, &quot;$METHOD_NAME$ (line $LINE$): $MESSAGE$&quot;)$END$" description="Log.d statement" toReformat="false" toShortenFQNames="true">
<variable name="CLASS_NAME" expression="groovyScript(&quot;if(_1.length() &gt; 23) { return _1.substring(0, 23)} else { return _1}&quot;, kotlinClassName())" defaultValue="" alwaysStopAt="true" />
<variable name="METHOD_NAME" expression="kotlinFunctionName()" defaultValue="" alwaysStopAt="false" />
<variable name="LINE" expression="lineNumber()" defaultValue="" alwaysStopAt="false" />
<variable name="MESSAGE" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="KOTLIN_STATEMENT" value="true" />
</context>
</template>