您的位置:首页 > 编程语言 > Python开发

eclipseForTest--pyDev&python3--Templates

2018-02-04 12:54 176 查看
//使用中的Templates



//pyCharm官方文档
http://www.jetbrains.com/help/pycharm/file-and-code-templates-2.html 
//注意大写
The available predefined file template variables are:
${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 current day 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.
//样例
//使用中的Templates
# coding=utf-8
#@作者:${USER}
#@Time:${DATE}-${TIME}
#@文件名称:${PROJECT_NAME}-${NAME}

//pyCharm官方文档
http://www.jetbrains.com/help/pycharm/file-and-code-templates-2.html 
//注意大写
The available predefined file template variables are:
${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 current day 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.

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: