把快捷键写在前面以便查询:
- 插入文件头,按
两次
ctrl+alt+H
- 插入Change Log,按两次
ctrl+alt+c
注意mac也使用ctrl键而不是cmd键。
"psi-header.config": {
"forceToTop": true,
"blankLinesAfter": 3,
"license": "Custom"
},
"psi-header.changes-tracking": {
"isActive": true,
"modAuthor": "Modified By: ",
"modDate": "Last Modified: ",
"modDateFormat": "date",
"include": [],
"exclude": [
"markdown",
"json"
],
"excludeGlob": [
"out/**",
"src/**/*.xyz",
"components/**/*.mk",
],
"autoHeader": "manualSave"
},
"psi-header.license-text": [
"May the force be with you."
],
"psi-header.variables": [
["company", "SimonLiu Inc."],
["author", "Simon Liu"],
["authoremail", "[email protected]"],
["initials","S.L"],
],
"psi-header.lang-config": [
{
"language": "lua",
"begin": "--[[",
"prefix": "--",
"end": "--]]",
"blankLinesAfter": 0
},
{
"language": "python",
"begin": "###",
"prefix": "# ",
"end": "###",
"blankLinesAfter": 0,
"beforeHeader": [
"#!/usr/bin/env python",
"# -*- coding:utf-8 -*-"
]
},
{
"language": "javascript",
"begin": "/**",
"prefix": " * ",
"end": " */",
"blankLinesAfter": 2,
"forceToTop": false
},
{
"language": "typescript",
"mapTo": "javascript"
}
],
"psi-header.templates": [
{
"language": "c",
"template": [
"File: <>" ,
"Project: <>" ,
"Created Date: <>" ,
"Author: <>" ,
"-----",
"Last Modified: <>" ,
"Modified By: ",
"-----",
"Copyright (c) <> <>" ,
"",
"<>" ,
"-----",
"HISTORY:",
"Date \tBy\tComments",
"----------\t---\t----------------------------------------------------------"
],
"changeLogCaption": "HISTORY:",
"changeLogHeaderLineCount": 2,
"changeLogEntryTemplate": [
"<>\t<>\t"
]
},
{
"language": "javascript",
"template": [
"File: <>" ,
"Project: <>" ,
"Created Date: <>" ,
"Author: <>" ,
"-----",
"Last Modified: ",
"Modified By: ",
"-----",
"Copyright (c) <> <>" ,
"------------------------------------",
"Javascript will save your soul!"
]
},
{
"language": "typescript",
"mapTo": "javascript"
}
]