注释代码片段

{
/*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": ""
}
}

posted on 2017-03-07 13:05  果然朝辉  阅读(151)  评论(0编辑  收藏  举报

导航