注释代码片段
{
/*vs code IDE代码注释*/
"file and class notes": {
"prefix": "n1",
"body": ["/*\n* $1\n* \n* $2\n* \n* @author $3\n* @create $4\n* @version $5\n*/"
],
"description": ""
},
"variable notes": {
"prefix": "n2",
"body": ["/*\n* $1\n* \n* @var $2 $3\n*/"
],
"description": ""
},
"function notes": {
"prefix": "n3",
"body": ["/*\n* $1\n* \n* @access public\n* @param $2 $3 $4\n* @return $5 $6 $7\n*/"
],
"description": ""
},
"modify others code notes": {
"prefix": "n4",
"body": ["/*\n* $1\n* \n* Modify by gch$3, $4\n*/"
],
"description": ""
},
"public function": {
"prefix": "p1",
"body": [
"public function $1($2) {\n $3\n}"
],
"description": ""
},
"private function": {
"prefix": "p2",
"body": [
"private function $1($2) {\n $3\n}"
],
"description": ""
},
"protected function": {
"prefix": "p3",
"body": [
"protected function $1($2) {\n $3\n}"
],
"description": ""
},
"exception function": {
"prefix": "e1",
"body": [
"try {\n $1\n} catch ($2Exception \\$e) {\n $3\n}"
],
"description": ""
}
}
只言片语任我说,提笔句句无需忖。落笔不知寄何人,唯有邀友共斟酌。