Applies to Java simple source files that are created by invoking New | Java Class/File | Simple source file in the Project tool window.

This built-in template is editable. Along with Java expressions and comments, you can also use the predefined variables (listed below) that will then be expanded like macros into corresponding values.

It is also possible to specify custom variables. カスタム変数には ${VARIABLE_NAME} の形式が使用されます。ここで、VARIABLE_NAME は変数の名前です (${MY_CUSTOM_FUNCTION_NAME} など)。 Before the IDE creates a new file with custom variables, you see a dialog where you can define values for custom variables in the template.

By using the #parse directive, you can include templates from the Includes tab. テンプレートをインクルードするには、テンプレートの完全な名前を引用符で囲み、パラメーターとして指定します (#parse("File Header.java") など)。
定義済み変数は以下の値を取ります。
${PACKAGE_NAME}   新しいレコードが作成されるパッケージの名前
${NAME}   新規クラスの作成」ダイアログでユーザーによって指定される新しいレコードの名前
${USER}   現在のユーザーのシステムログイン名
${DATE}   現在のシステムの日付
${TIME}   現在のシステムの時刻
${YEAR}   現在の年
${MONTH}   現在の月
${MONTH_NAME_SHORT}   現在の月の名前の最初の 3 文字 (Jan、Feb など)
${MONTH_NAME_FULL}   現在の月の完全な名前 (January、February など)
${DAY}   現在の月の日
${HOUR}   現在の時間
${MINUTE}   現在の分
${PROJECT_NAME}   現在のプロジェクトの名前