Monday, February 18, 2019

Setting Java File Template in NetBeans

Step 1: Click Tools -> Template


Step 2 : Click Java -> Java Class -> Open in Editor


Step 3 : Edit template & save



** Example :

<#assign licenseFirst = "/*">
<#assign licensePrefix = " * ">
<#assign licenseLast = " */">
<#include "${project.licensePath}">

<#if package?? && package != "">
package ${package};

</#if>
/**
 * ${name}
 *
 * @author ${user}
 * @since ${date} - ${time}
 */
public class ${name} {

}
Previous Post
Next Post

0 komentar: