参考文章https://zhuanlan.zhihu.com/p/100504877
文件-首选项-配置用户代码
File-Preferences-User Snippets
在搜索框输入c
根据需要选择对应配置文件(.json结尾)
c.json是C语言的配置文件(绿色荧光笔标注)
cpp(c++)是c++的配置文件(红色荧光笔标注)
此处以C语言为例,点击c.json
第一次搜索如果没找到c.json显示有一个显示c的文件也是同一文件
打开之后的样子
{
// Place your snippets for c here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are con