vscode Python文件头部信息
2019-12-12 15:23 JohnRain 阅读(1437) 评论(0) 编辑 收藏 举报打开配置文件 python.json
修改配置文件
{
"HEADER":{
"prefix": "header",
"body": [
"#!/usr/bin/env python",
"# -*- encoding: utf-8 -*-",
"'''",
"@File : $TM_FILENAME",
"@Time : $CURRENT_YEAR/$CURRENT_MONTH/$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
"@Author : JohnRain",
"@Contact : iamjohnrain@163.com",
"@Department : Sun Yat-Sen University",
"@Desc : None",
"'''",
"",
"# here put the import lib",
"$0"
],
}
}
使用方法
使用自动补全来快速导入头部信息