Pycharm创建文件模板
2016-02-25 23:41
399 查看
https://blog.phpgao.com/pycharm_template.html
进入File->settings->Editor->File and Code Templates->Python Script
添加以下内容:
脚本中还可以添加自定义变量!
参考链接:
http://wiki.woodpecker.org.cn/moin/CodeCommentingRule
http://www.cnblogs.com/ziyouchutuwenwu/archive/2013/12/18/3480035.html
https://github.com/phpgao/PyCharm-Python-Templates
https://www.jetbrains.com/pycharm/webhelp/creating-and-editing-file-templates.html
http://peter-hoffmann.com/2010/python-live-templates-for-pycharm.html
本文由 老高 创作,采用 知识共享署名
3.0 中国大陆许可协议 进行许可。
可自由转载、引用,但需署名作者且注明文章出处。
进入File->settings->Editor->File and Code Templates->Python Script
添加以下内容:
#!/usr/bin/env python # encoding: utf-8 #set( $SITE = "http://www.phpgao.com" ) """ @version: ?? @author: phpergao @license: Apache Licence @contact: endoffight@gmail.com @site: ${SITE} @software: ${PRODUCT_NAME} @file: ${NAME}.py @time: ${DATE} ${TIME} """ def func(): pass class Main(): def __init__(self): pass if __name__ == '__main__': pass
脚本中还可以添加自定义变量!
参考链接:
http://wiki.woodpecker.org.cn/moin/CodeCommentingRule
http://www.cnblogs.com/ziyouchutuwenwu/archive/2013/12/18/3480035.html
https://github.com/phpgao/PyCharm-Python-Templates
https://www.jetbrains.com/pycharm/webhelp/creating-and-editing-file-templates.html
http://peter-hoffmann.com/2010/python-live-templates-for-pycharm.html
本文由 老高 创作,采用 知识共享署名
3.0 中国大陆许可协议 进行许可。
可自由转载、引用,但需署名作者且注明文章出处。
相关文章推荐
- Qt获取控件位置,坐标总结
- Unity3D之视频播放
- vc下项目的头文件包含目录以及库导入预计库目录设置
- iOS 网络解析
- HTML select option基础理解及使用
- ios 缩放图片(平铺)
- 【hdu1181】变形课——bfs
- LeetCode第258题,Add Digits
- 安装事件过滤器(installEventFilter) ,过滤子控件事件,截获控件按键、鼠标事件
- Qt::FocusPolicy的使用
- 在VS2015中用C++创建动态库并用C#调用
- TWinControl.DefaultHandler处理WM_CTLCOLORMSGBOX..WM_CTLCOLORSTATIC消息的两个参数很有意思,两个都是传递句柄
- iOS_SN_基于AFNetworking3.0网络封装
- OC基础--ARC的基本使用
- 关于Assets资源目录结构管理
- Qt中的焦点事件
- UVA 1213(p343)----Sum of Different Primes
- Servlet_04_GenericServlet
- linux驱动之PWM(定时器)
- SUSE linux IP的两种配置方法