
{ "Print Note before function": { "prefix": "gcw_function_note", "body": [ "/********************************************************************************", "* 函 数 名: $1 ", "* 功能描述: $2", "* 输 入:无", "* 输 出:无", "* 设 计 者: James_Gao 日期: 2019年10月21日", "* 修 改 者: 日期:", "********************************************************************************/", "int $1($3)", "{", "\t$0", "\treturn 0;", "}", ], "description": "Print Note before function" }, "Add a comment at the beginning of the file": { "prefix": "gcw_file_note", "body": [ "/***********************************文件说明************************************* ", "* 版 权:---------------------------", "* 项目名称: 煤矿用智能运输管理系统 ", "* 产品名称:(Can总线驱动)待补充 ", "* 创建日期: 2019年9月12日", "* 创 建 人:-------", "* 文 件 名:-------", "* 文件功能: --------", "* 工 具 链:MDK-ARM-Standard Version 5.16a", "* 编 译 器:Armcc.exe V5.06(build 20)", "* 修 改 者: 日期:", "* 备 注: ", "********************************************************************************/", "$0", ], "description": "Add a comment at the beginning of the file" }, "For statement" :{ "prefix": "gcw_for", "body": [ "for(i=0;i<$1;i++)", "{", "$2", "}", "$0", ], "description": "For statement" }, "While statement" :{ "prefix": "gcw_while", "body": [ "while($1)", "{", "$2", "}", "$0", ], "description": "while statement" }, "Switch statement" :{ "prefix": "gcw_switch", "body": [ "switch($1)", "{", "case $2 :", "\tbreak;", "case $3 :", "\tbreak;", "case $4 :", "\tbreak;", "default:", "\tbreak;", "}", "$0", ], "description": "Switch statement" }, "ADD COMMENT":{ "prefix": "gcw_comment", "body": [ "/************** $1 **************/", ], "description": "添加/**/型注释" }, "ADD COMMENT0":{ "prefix": "gcw_lcomment", "body": [ "/* $1 */", ], "description": "添加/**/型注释" }, }