Add soutf template for printing current position (KT-19709)
#KT-19709 Fixed
This commit is contained in:
@@ -47,6 +47,16 @@
|
||||
<option name="KOTLIN_STATEMENT" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template description="Prints current class and function name to System.out"
|
||||
name="soutf"
|
||||
toReformat="false" toShortenFQNames="true"
|
||||
value="println("$CLASS$.$METHOD$")">
|
||||
<variable name="CLASS" expression="groovyScript("_1 ?: '<top>'", kotlinClassName())" defaultValue="" alwaysStopAt="false" />
|
||||
<variable name="METHOD" expression="kotlinFunctionName()" defaultValue="" alwaysStopAt="false" />
|
||||
<context>
|
||||
<option name="KOTLIN_STATEMENT" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.iter"
|
||||
name="iter" toReformat="true" toShortenFQNames="true"
|
||||
value="for ($VAR$ in $ITERABLE$) { $END$ }">
|
||||
|
||||
Reference in New Issue
Block a user