Skip to content

Commit

Permalink
Merge pull request #11 from Eastegg/master
Browse files Browse the repository at this point in the history
Add email too header like sublime text
  • Loading branch information
zhaopengme committed Feb 5, 2018
2 parents 7c8ede8 + 5c7bb58 commit 0e9f50b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions extension.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @Author: mikey.zhaopeng
* @Date: 2016-07-29 15:57:29
* @Last Modified by: huangyuan413026@163.com
* @Last Modified time: 2017-02-28 17:51:49
* @Last Modified by: Eastegg
* @Last Modified time: 2018-02-5 18:05:49
*/

var vscode = require('vscode');
Expand Down Expand Up @@ -47,6 +47,7 @@ function activate(context) {
var time = new Date().format("yyyy-MM-dd hh:mm:ss");
var data = {
author: config.Author,
email: config.Email,
lastModifiedBy: config.LastModifiedBy,
createTime: time,
updateTime: time
Expand Down Expand Up @@ -194,4 +195,4 @@ function template(tpl) {
exports.activate = activate;

function deactivate() { }
exports.deactivate = deactivate;
exports.deactivate = deactivate;
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* @Last Modified time: 2017-02-28 17:51:56
* @Description: 增加Description字段
*/
"default": "/*\r\n * @Author: {author}\r\n * @Date: {createTime}\r\n * @Last Modified by: {lastModifiedBy}\r\n * @Last Modified time: {updateTime}\r\n * @Description: Description\r\n */\r\n",
"default": "/*\r\n * @Author: {author}\r\n * @Email: {email}\r\n * @Date: {createTime}\r\n * @Last Modified by: {lastModifiedBy}\r\n * @Last Modified time: {updateTime}\r\n * @Description: Description\r\n */\r\n",
"description": "By default, common template. Do not modify it!!!!!"
},
"fileheader.LastModifiedBy": {
Expand Down Expand Up @@ -81,4 +81,4 @@
"devDependencies": {
"vscode": "^0.11.0"
}
}
}

0 comments on commit 0e9f50b

Please sign in to comment.