- Improved java snippets.
This commit is contained in:
parent
2a2be48c3b
commit
3300aafd8e
@ -16,22 +16,22 @@ snippet fi
|
|||||||
snippet ab
|
snippet ab
|
||||||
abstract
|
abstract
|
||||||
|
|
||||||
snippet cl
|
snippet class
|
||||||
class ${1} ${2:extends} ${3:#:Parent} ${4:implements} ${5:#:Interface} {
|
class ${1} ${2:extends} ${3:#:Parent} ${4:implements} ${5:#:Interface} {
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet in
|
snippet interface
|
||||||
interface ${1} ${2:extends} ${3:#:Parent} {
|
interface ${1} ${2:extends} ${3:#:Parent} {
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet m
|
snippet method
|
||||||
${1:void} ${2:#:method}(${3}) ${4:throws} {
|
${1:void} ${2:#:method}(${3}) ${4:throws} {
|
||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet v
|
snippet var
|
||||||
${1:#:type} ${2:#:var}${3};
|
${1:#:type} ${2:#:var}${3};
|
||||||
|
|
||||||
snippet co
|
snippet co
|
||||||
@ -56,7 +56,7 @@ snippet elif
|
|||||||
${2:TARGET}
|
${2:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet wh
|
snippet while
|
||||||
while (${1}) {
|
while (${1}) {
|
||||||
${2:TARGET}
|
${2:TARGET}
|
||||||
}
|
}
|
||||||
@ -66,12 +66,13 @@ snippet for
|
|||||||
${4:TARGET}
|
${4:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet fore
|
snippet foreach
|
||||||
|
alias fore
|
||||||
for (${1} : ${2}) {
|
for (${1} : ${2}) {
|
||||||
${3:TARGET}
|
${3:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet sw
|
snippet switch
|
||||||
switch (${1}) {
|
switch (${1}) {
|
||||||
${2:TARGET}
|
${2:TARGET}
|
||||||
}
|
}
|
||||||
@ -89,7 +90,7 @@ snippet de
|
|||||||
default:
|
default:
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet ca
|
snippet catch
|
||||||
catch (${1:#:Exception} ${2:e}) {
|
catch (${1:#:Exception} ${2:e}) {
|
||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
@ -116,8 +117,9 @@ snippet test
|
|||||||
${0:TARGET}
|
${0:TARGET}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet imt
|
snippet import
|
||||||
import junit.framework.TestCase;
|
alias imt
|
||||||
|
import ${1};
|
||||||
${0}
|
${0}
|
||||||
|
|
||||||
snippet j.u
|
snippet j.u
|
||||||
@ -140,26 +142,26 @@ snippet main
|
|||||||
${0}
|
${0}
|
||||||
}
|
}
|
||||||
|
|
||||||
snippet pl
|
snippet println
|
||||||
System.out.println(${1});${0}
|
System.out.println(${1});${0}
|
||||||
|
|
||||||
snippet p
|
snippet print
|
||||||
System.out.print(${1});${0}
|
System.out.print(${1});${0}
|
||||||
|
|
||||||
#javadoc
|
#javadoc
|
||||||
snippet c
|
snippet comment
|
||||||
/**
|
/**
|
||||||
* ${0:TARGET}
|
* ${0:TARGET}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
snippet a
|
snippet author
|
||||||
@author ${0:$TM_FULLNAME}
|
@author ${0:$TM_FULLNAME}
|
||||||
|
|
||||||
snippet {code
|
snippet {code
|
||||||
abbr {
|
abbr {
|
||||||
{@code ${0}
|
{@code ${0}
|
||||||
|
|
||||||
snippet d
|
snippet deprecated
|
||||||
@deprecated ${0:#:description}
|
@deprecated ${0:#:description}
|
||||||
|
|
||||||
snippet {docRoot
|
snippet {docRoot
|
||||||
@ -185,13 +187,13 @@ abbr {
|
|||||||
snippet param
|
snippet param
|
||||||
@param ${1:#:var} ${0:#:description}
|
@param ${1:#:var} ${0:#:description}
|
||||||
|
|
||||||
snippet r
|
snippet return
|
||||||
@return ${0:#:description}
|
@return ${0:#:description}
|
||||||
|
|
||||||
snippet s
|
snippet see
|
||||||
@see ${0:#:reference}
|
@see ${0:#:reference}
|
||||||
|
|
||||||
snippet se
|
snippet serial
|
||||||
@serial ${0:#:description}
|
@serial ${0:#:description}
|
||||||
|
|
||||||
snippet sd
|
snippet sd
|
||||||
@ -200,19 +202,17 @@ snippet sd
|
|||||||
snippet sf
|
snippet sf
|
||||||
@serialField ${1:#:name} ${2:#:type} ${0:#:description}
|
@serialField ${1:#:name} ${2:#:type} ${0:#:description}
|
||||||
|
|
||||||
snippet si
|
snippet since
|
||||||
@since ${0:#:version}
|
@since ${0:#:version}
|
||||||
|
|
||||||
snippet t
|
snippet throws
|
||||||
@throws ${1:#:class} ${0:#:description}
|
@throws ${1:#:class} ${0:#:description}
|
||||||
|
|
||||||
snippet {value
|
snippet {value
|
||||||
abbr {
|
abbr {
|
||||||
{@value ${0}
|
{@value ${0}
|
||||||
|
|
||||||
snippet ver
|
snippet version
|
||||||
|
alias ver
|
||||||
@version ${0:#:version}
|
@version ${0:#:version}
|
||||||
|
|
||||||
snippet null
|
|
||||||
{@code null}
|
|
||||||
|
|
||||||
|
@ -641,6 +641,7 @@ CHANGELOG *neosnippet-changelog*
|
|||||||
- Fixed snippet mirror behavior.
|
- Fixed snippet mirror behavior.
|
||||||
- Fixed substitute of target.
|
- Fixed substitute of target.
|
||||||
- Fixed convert description.
|
- Fixed convert description.
|
||||||
|
- Improved java snippets.
|
||||||
|
|
||||||
2012-10-31
|
2012-10-31
|
||||||
- Improved indent_snippet().
|
- Improved indent_snippet().
|
||||||
|
Loading…
Reference in New Issue
Block a user