Snippet

vscode snipets 用户代码片段使用指南 snipets简介 snipets 我愿意称为程序员的ctrl+c ctrl+v最大的竞争对手,sniptes适用于遇到很多重复代码却又没法去提取代码特点抽象成类的情况。比如写注释的时候。 这是一个极好的工具用于高效率办公(摸鱼) vscode 打开snipets 然后你就需要选择对应的语言,这里我以doxygen注释文件为例子: 打开之后会得到这样一个文件: { // Place your snippets for doxygen 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.
Read full post