Introduce 'maino' and 'psvmo' templates for generating main in object (KT-6520)

#KT-6520 Fixed
(cherry picked from commit cf1bdba)
This commit is contained in:
Nikolay Krasko
2016-08-17 13:32:53 +03:00
committed by Nikolay Krasko
parent 48d7e8c519
commit 4d6206a7b5
11 changed files with 144 additions and 60 deletions
+16
View File
@@ -8,6 +8,14 @@
</context>
</template>
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.main"
name="maino" toReformat="true" toShortenFQNames="true"
value="@JvmStatic fun main(args : Array&lt;String&gt;) {&#10; $END$&#10;}">
<context>
<option name="KOTLIN_OBJECT_DECLARATION" value="true" />
</context>
</template>
<template resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.sout"
name="sout" toReformat="true"
ShortenFQNames="true" value="println($END$)">
@@ -197,6 +205,14 @@
</context>
</template>
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.main"
name="psvmo" toReformat="true" toShortenFQNames="true"
value="@JvmStatic fun main(args : Array&lt;String&gt;) {&#10; $END$&#10;}">
<context>
<option name="KOTLIN_OBJECT_DECLARATION" value="true" />
</context>
</template>
<!-- Synonym for anonymous -->
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.anonymous"
name="object" id="kt-object" toReformat="true" toShortenFQNames="true" value="object : $SUPERTYPE$ {&#10;$END$&#10;}">