码迷,mamicode.com
首页 > 其他好文 > 详细

pycharm templates 设置

时间:2015-09-03 14:08:08      阅读:824      评论:0      收藏:0      [点我收藏+]

标签:python   templates   pycharm   

1、File-Settings-Editor-File Code Templates 配置Python Script模板文件;

技术分享

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 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.

3、配置实例截图;

技术分享


本文出自 “一念之间” 博客,请务必保留此出处http://blueleague.blog.51cto.com/8499581/1691092

pycharm templates 设置

标签:python   templates   pycharm   

原文地址:http://blueleague.blog.51cto.com/8499581/1691092

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!