1.新建一个代码片段文件
选择File -> Preferences -> User Snippets
选择代码片段类型,此处为New Global Snippets file
选中后,确认新建一个文件
2.设置fileheader的代码片段(json格式)
"File Header Comments": {
"prefix": "fileheader",
"body": [
"/**",
" * ${1:Undocumented}",
" * @author: username",
" * @email: example@qq.com",
" * @date: ${CURRENT_YEAR}/${CURRENT_MONTH}/${CURRENT_DATE} ${CURRENT_HOUR}:${CURRENT_MINUTE}",
" */"
],
"description": "File Header Comments"
}