首页 > 其他 > 详细

vscode的snippet代码片段

时间:2021-06-19 15:08:42      阅读:26      评论:0      收藏:0      [点我收藏+]
  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"
  }
}

vscode的snippet代码片段

原文:https://www.cnblogs.com/majiao61/p/14902595.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!