Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>VS Code Go SnippetsNew to Visual Studio Code? Get it now.
VS Code Go Snippets

VS Code Go Snippets

Otarossoni

|
98 installs
| (0) | Free
Code snippets for Golang development in VS Code editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Golang Snippets

Snippets

  • Package snippets:
    • pkg: Create a new package
    • pmn: Create a package main
  • Function snippets:
    • fnn: Create a new function without parameters
    • fnc: Create a new function with a parameter
    • fnm: Create a new main function
  • Declaration snippets:
    • vab: Create a new variable block
    • cob: Create a new constant block
  • Print snippets
    • fpt: Create a single print
    • fpl: Create a single print with new line
  • statement snippets:
    • ifs: Create a new simple if statement
    • ife: Create a new if/else statement
    • ier: Create a new if != nil statement
    • swc: Create a new simple switch statement
    • foc: Create a new for statement with count
    • frg: Create a new for/range statement
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft