NetBeans Code Templates ${date}?

后端 未结 6 2133
感动是毒
感动是毒 2021-02-14 03:16

I have this code template in Eclipse

@since ${date}

when entered i get something like this :

@since 4.8.2009

6条回答
  •  遥遥无期
    2021-02-14 03:28

    Your snippet looks like freemarker code. This is used in Netbeans for file templates (Tools -> Templates). If you put ${date} in a file template it will get transformed when the file is created to the current date. If you're trying to use it as a code template I don't know how that works.

提交回复
热议问题