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
import (
"fmt"
)
func main() {
fmt.Println($0)
}",
"description": "pkgim"
},
}