vscode的snippet代码片段

  1. 快速生成简单类
{
  "majiao Class Object": {
  	"prefix": "classHpp",
  	"body": [
  		"#ifndef ${1:${TM_FILENAME_BASE/(.*)/_${1:/upcase}_H/i}} ",
  		"#define $1 ",
  		" ",
  		"#include \"MajiaoObject.hpp\" ",
  		" ",
  		"class ${2:${TM_FILENAME_BASE}} : public MajiaoObject { ",
  		"    public :  ",
  		"        ${2}() {  } ",
  		"        ~${2}() {  } ",
  		"}; ",
  		"#endif\t// $1",
  	],
  	"description": "class ext from Object majiaoClassSnippet"
  }
}
上一篇:snippet n. 小片, 片断, 摘录 单词记忆


下一篇:HBase