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"
    },
}
 

 

相关文章:

  • 2021-10-02
  • 2022-01-02
  • 2022-01-10
  • 2021-08-19
  • 2021-07-01
  • 2021-09-26
  • 2021-09-09
  • 2021-10-05
猜你喜欢
  • 2022-12-23
  • 2022-01-23
  • 2021-08-01
  • 2021-04-09
  • 2021-11-15
  • 2022-12-23
  • 2021-06-14
相关资源
相似解决方案