Introduce live templates for main without arguments #KT-27461 Fixed
This commit is contained in:
@@ -2,6 +2,15 @@
|
||||
<templateSet group="Kotlin">
|
||||
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.main"
|
||||
name="main" toReformat="true" toShortenFQNames="true"
|
||||
value="fun main($ARGS$) { $END$ }">
|
||||
<variable name="ARGS" expression="kotlinMainArguments()" defaultValue="" alwaysStopAt="false" />
|
||||
<context>
|
||||
<option name="KOTLIN_TOPLEVEL" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
|
||||
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.main"
|
||||
name="maina" toReformat="true" toShortenFQNames="true"
|
||||
value="fun main(args: Array<String>) { $END$ }">
|
||||
<context>
|
||||
<option name="KOTLIN_TOPLEVEL" value="true" />
|
||||
@@ -209,6 +218,15 @@
|
||||
<!-- Synonym for main -->
|
||||
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.main"
|
||||
name="psvm" toReformat="true" toShortenFQNames="true"
|
||||
value="fun main($ARGS$) { $END$ }">
|
||||
<variable name="ARGS" expression="kotlinMainArguments()" defaultValue="" alwaysStopAt="false" />
|
||||
<context>
|
||||
<option name="KOTLIN_TOPLEVEL" value="true" />
|
||||
</context>
|
||||
</template>
|
||||
|
||||
<template resource-bundle="org.jetbrains.kotlin.idea.KotlinBundle" key="livetemplate.description.main"
|
||||
name="psvma" toReformat="true" toShortenFQNames="true"
|
||||
value="fun main(args: Array<String>) { $END$ }">
|
||||
<context>
|
||||
<option name="KOTLIN_TOPLEVEL" value="true" />
|
||||
|
||||
Reference in New Issue
Block a user