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:
committed by
Nikolay Krasko
parent
48d7e8c519
commit
4d6206a7b5
@@ -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<String>) { $END$ }">
|
||||
<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<String>) { $END$ }">
|
||||
<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$ { $END$ }">
|
||||
|
||||
Reference in New Issue
Block a user