Added 'anonymous' live template.
This commit is contained in:
@@ -117,6 +117,14 @@
|
||||
<option name="KOTLIN_EXPRESSION" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
<template resource-bundle="org.jetbrains.jet.plugin.JetBundle" key="livetemplate.description.anonymous"
|
||||
name="anonymous" toReformat="true" toShortenFQNames="true" value="object : $SUPERTYPE$ { $END$ }">
|
||||
<variable alwaysStopAt="true" defaultValue="" expression="" name="SUPERTYPE" />
|
||||
<context>
|
||||
<option name="KOTLIN_STATEMENT" value="true"/>
|
||||
<option name="KOTLIN_EXPRESSION" value="true"/>
|
||||
</context>
|
||||
</template>
|
||||
|
||||
<template resource-bundle="org.jetbrains.jet.plugin.JetBundle" key="livetemplate.description.exfun"
|
||||
name="exfun" toReformat="true" toShortenFQNames="true"
|
||||
|
||||
@@ -36,6 +36,7 @@ livetemplate.description.fun2=Function with two parameters
|
||||
livetemplate.description.interface=Trait
|
||||
livetemplate.description.singleton=Singleton
|
||||
livetemplate.description.closure=Closure (function without name)
|
||||
livetemplate.description.anonymous=Anonymous class
|
||||
livetemplate.description.exfun=Extension function
|
||||
livetemplate.description.exval=Extension read-only property
|
||||
livetemplate.description.exvar=Extension read-write property
|
||||
|
||||
Reference in New Issue
Block a user