看注释!!!
"process":{
"prefix": "gen",//触发关键字,在用对应语言编写时输入“gen”敲回车就会输入下面body中的内容。
"body": [
"--$1_gen$2", //$1 $2 按顺序标记 tab 跳转位置
"$1_gen : process( ${3:rst_n, clk_i} )", //${num:default} 包含初始值的标记
"begin",
"\t$0", //“\t”表示tab缩进,$0为光标最后停留位置
"end process $1_gen"
],
"description": "process generate"
},//
"others":{ //另一个自定义代码段
"prefix": "oth",
"body": [
"<= (others => '0');"
],
"description": "00"
},
VS 官方指南:https://code.visualstudio.com/docs/editor/userdefinedsnippets