vscode-开发利器

vscode插件配置

koroFileHeader

快捷键:ctrl+alt+i 头部注释;ctrl+alt+t 函数注释

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
"fileheader.configObj": {
"createFileTime": true,//设置为true则为文件新建时候作为date,否则注释生成时间为date
"autoAdd": true,//自动生成注释,老是忘记的同学可以设置
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */",
"use": true //设置自定义注释可用
},
"headInsertLine": {
"php": 2
}
},
"fileheader.customMade": {
"Author": "Bing",
"Date": "",
"version": "0.1",
"Description" : "",
}, // 头部注释
"fileheader.cursorMode": {
"Description": "",
"Author": "Bing",
"Date": "",
"param": "",
"return" : "",
} // 函数注释

snippet

1
2
3
4
5
6
7
8
9
10
11
12
13
14
{
// Place your snippets for python here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"python ... headers": {
"prefix": "py_header",
"body": [
"#!/usr/bin/env python \n# -*- coding: utf-8 -*- \n# Author: Bing \n# Email: wulitouhaha@vip.qq.com\n# Date: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}:${CURRENT_SECOND} \n# Description: test \n\n$1"
],
"description": "Log output to console"
},
}
坚持原创技术分享,您的支持将鼓励我继续创作!