vscode的snippet代码片段
作者:互联网
- 快速生成简单类
{
"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"
}
}
标签:片段,vscode,class,Object,MajiaoObject,FILENAME,snippet,TM,public 来源: https://www.cnblogs.com/majiao61/p/14902595.html