This is an automated email from the ASF dual-hosted git repository.

junichi11 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git


The following commit(s) were added to refs/heads/master by this push:
     new e82da4a  Add the "main" abbreviation as the alias of "psvm"
     new 45231de  Merge pull request #1176 from junichi11/java-main-abbreviation
e82da4a is described below

commit e82da4a604c78f8527a0af22c0a32854a0be1917
Author: Junichi Yamamoto <[email protected]>
AuthorDate: Thu Mar 28 21:02:29 2019 +0900

    Add the "main" abbreviation as the alias of "psvm"
---
 .../netbeans/modules/java/editor/resources/DefaultAbbrevs.xml    | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git 
a/java/java.editor/src/org/netbeans/modules/java/editor/resources/DefaultAbbrevs.xml
 
b/java/java.editor/src/org/netbeans/modules/java/editor/resources/DefaultAbbrevs.xml
index 4b7b731..0ed5b15 100644
--- 
a/java/java.editor/src/org/netbeans/modules/java/editor/resources/DefaultAbbrevs.xml
+++ 
b/java/java.editor/src/org/netbeans/modules/java/editor/resources/DefaultAbbrevs.xml
@@ -265,6 +265,15 @@ ${selection}${cursor}
         </code>
     </codetemplate>
 
+    <codetemplate abbreviation="main" contexts="CLASS">
+        <code>
+<![CDATA[public static void main(String[] args) {
+   ${cursor}
+}
+]]>
+        </code>
+    </codetemplate>
+
     <codetemplate abbreviation="bcom" descriptionId="CT_bcom">
         <code>
 <![CDATA[${no-format}/*${selection}${cursor}*/]]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to