Skip to content

Instantly share code, notes, and snippets.

@TonyPepeBear
Created May 9, 2019 14:14
Show Gist options
  • Save TonyPepeBear/fde5a8946705ac5a6c33b59a7691e139 to your computer and use it in GitHub Desktop.
Save TonyPepeBear/fde5a8946705ac5a6c33b59a7691e139 to your computer and use it in GitHub Desktop.
Android Kotlin Template
<templateSet group="AndroidKotlin">
<template name="logd" value="logd(&quot;$METHOD_NAME$: $content$&quot;)" description="Log.d(String)" toReformat="true" toShortenFQNames="true">
<variable name="METHOD_NAME" expression="kotlinFunctionName()" defaultValue="" alwaysStopAt="true" />
<variable name="content" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="KOTLIN_STATEMENT" value="true" />
</context>
</template>
<template name="todo" value="//TODO $todo$" description="" toReformat="false" toShortenFQNames="true">
<variable name="todo" expression="" defaultValue="" alwaysStopAt="true" />
<context>
<option name="JAVA_CODE" value="true" />
<option name="KOTLIN" value="true" />
</context>
</template>
</templateSet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment