11_Go 自定义快捷代码块
Crtl + Shift + P
>snippets 配置用户自定义代码块
go => go.json
{
"pln": {
"prefix": "pln",
"body": "fmt.Println($0)",
"description": "fmt.Println()"
},
"plf": {
"prefix": "plf",
"body": "fmt.Printf(\"$0\\n\",)",
"description": "fmt.Printf()"
},
"pim": {
"prefix": "pim",
"body": "package main\nimport (\n\t\"fmt\"\n)\nfunc main() {\n\tfmt.Println($0)\n}",
"description": "pkgim"
},
}