Ctrl + Shift + p 再选择go 配置以下内容
"package main": { "prefix": "main", "body":[ "package main ", "import (", " "fmt"", " $1", ") ", "func main() {", " $2", "}", ], "description": "short for package main" }, "pln":{ "prefix": "pln", "body": "fmt.Println("$0")", "description": "快捷键" }, "plf":{ "prefix": "plf", "body": "fmt.Printf("$0\n")", "description": "快捷键" }
参考地址 https://juejin.cn/post/6844903869424599053