Files
K12Study/global.code-snippets
2026-04-16 18:12:09 +08:00

66 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
// VS Code 原生 snippet 不能直接读取 git config user.name。
// 团队统一文件头请使用 turbo-file-header 插件,配置见 .fileheader/fileheader.config.yaml。
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. 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:
// "Print to console": {
// "scope": "javascript,typescript",
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"FileHeader":{
"prefix": ".fileheader",
"body": [
"/**",
" * @description ${TM_FILENAME}文件描述",
" * @filename ${TM_FILENAME}",
" * @author ${1:wangys}",
" * @copyright xyzh",
" * @since $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
" */"
],
"description": "文件头描述静态备用author 默认值同步 git user.name"
},
"Method":{
"prefix": ".func",
"body": [
"/**",
" * @description 函数描述",
" * @param ",
" * @return 返回值描述",
" * @author ${1:wangys}",
" * @since $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
" */"
],
"description": "函数描述静态备用author 默认值同步 git user.name"
},
"Property":{
"prefix": ".prop",
"body": [
"/**",
" *",
" */"
],
"description": "属性描述"
},
"Variables":{
"prefix": ".var",
"body": [
"/**",
" *",
" */"
],
"description": "变量描述"
}
}