Files
openide/resources/src/liveTemplates/JavaNormalClassesWithInstanceMain.xml
Mikhail Pyltsin b1cfbfa235 IJ-CR-162106 [java] IDEA-360079 live templates for instance main methods in implicitly declared classes
- add psvm for normal class, implicit class and normal class with instance 'main' method

GitOrigin-RevId: 46858978ef26162826e951e032d8eca4e85cac49
2025-05-09 14:12:08 +00:00

16 lines
827 B
XML

<?xml version="1.0" encoding="UTF-8"?>
<templateSet group="Java//Instance 'main' methods for normal classes">
<template resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.short.psvm"
name="psvm" toReformat="true" toShortenFQNames="true" value="static void main($END$){&#13;&#10; &#13;&#10;}">
<context>
<option name="JAVA_NORMAL_CLASS_DECLARATION_WITH_INSTANCE_MAIN" value="true" />
</context>
</template>
<template resource-bundle="messages.CodeInsightBundle" key="livetemplate.description.short.psvm"
name="main" toReformat="true" toShortenFQNames="true" value="static void main($END$){&#13;&#10; &#13;&#10;}">
<context>
<option name="JAVA_NORMAL_CLASS_DECLARATION_WITH_INSTANCE_MAIN" value="true" />
</context>
</template>
</templateSet>