Added 'interface' and 'singleton' live templates.
This commit is contained in:
@@ -83,4 +83,23 @@
|
|||||||
<option name="KOTLIN_NAMESPACE" value="true"/>
|
<option name="KOTLIN_NAMESPACE" value="true"/>
|
||||||
</context>
|
</context>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
<template resource-bundle="org.jetbrains.jet.plugin.JetBundle" key="livetemplate.description.interface"
|
||||||
|
name="interface" toReformat="true" toShortenFQNames="true" value="trait $NAME$ { $END$ }">
|
||||||
|
<variable alwaysStopAt="true" defaultValue="" expression="" name="NAME" />
|
||||||
|
<context>
|
||||||
|
<option name="KOTLIN_STATEMENT" value="true"/>
|
||||||
|
<option name="KOTLIN_CLASS" value="true"/>
|
||||||
|
<option name="KOTLIN_NAMESPACE" value="true"/>
|
||||||
|
</context>
|
||||||
|
</template>
|
||||||
|
<template resource-bundle="org.jetbrains.jet.plugin.JetBundle" key="livetemplate.description.singleton"
|
||||||
|
name="singleton" toReformat="true" toShortenFQNames="true" value="object $NAME$ { $END$ }">
|
||||||
|
<variable alwaysStopAt="true" defaultValue="" expression="" name="NAME" />
|
||||||
|
<context>
|
||||||
|
<option name="KOTLIN_STATEMENT" value="true"/>
|
||||||
|
<option name="KOTLIN_CLASS" value="true"/>
|
||||||
|
<option name="KOTLIN_NAMESPACE" value="true"/>
|
||||||
|
</context>
|
||||||
|
</template>
|
||||||
</templateSet>
|
</templateSet>
|
||||||
|
|||||||
@@ -33,5 +33,7 @@ livetemplate.description.void=Function returning nothing
|
|||||||
livetemplate.description.fun0=Function with no parameters
|
livetemplate.description.fun0=Function with no parameters
|
||||||
livetemplate.description.fun1=Function with one parameter
|
livetemplate.description.fun1=Function with one parameter
|
||||||
livetemplate.description.fun2=Function with two parameters
|
livetemplate.description.fun2=Function with two parameters
|
||||||
|
livetemplate.description.interface=Trait
|
||||||
|
livetemplate.description.singleton=Singleton
|
||||||
macro.variable.of.type=kotlinVariableOfType(Type)
|
macro.variable.of.type=kotlinVariableOfType(Type)
|
||||||
macro.fun.parameters=functionParameters()
|
macro.fun.parameters=functionParameters()
|
||||||
Reference in New Issue
Block a user