1、File—Default setting—Editor—File and Code Template进入设置。
2、关于Templates一些参数变量详解;
${PROJECT_NAME}- the name of the current project.${NAME}- the name of the new file which you specify in the New File dialog box during the file creation.${USER}- the login name of the current user.${DATE}- the current system date.${TIME}- the current system time.${YEAR}- the current year.${MONTH}- the current month.${DAY}- the currentday of the month.
${HOUR}- the current hour.${MINUTE}- the current minute.${PRODUCT_NAME}- the name of the IDE in which the file will be created.${MONTH_NAME_SHORT}- the first 3 letters of the month name. Example: Jan, Feb, etc.${MONTH_NAME_FULL}- full name of a month. Example: January, February, etc.
IDE文件模板变量详解
本文介绍了在IDE中如何设置默认文件模板,并详细解释了各种可用的模板变量,如项目名称、用户名、当前日期和时间等,帮助用户快速生成带有特定信息的新文件。
5991





