Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-weaverNew to Visual Studio Code? Get it now.
vscode-weaver

vscode-weaver

parthw

|
72 installs
| (0) | Free
To generate boilerplate code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-weaver

vscode-weaver is a Visual Studio Code extension designed to simplify the process of writing boilerplate code for common patterns in Go programming. Currently, it supports the generation of boilerplate code for Getter, With, and Builder patterns.

Features

  • Getter Pattern: Easily generate getter methods for struct fields.
  • With Pattern: Generate with methods and option structs for setting individual fields in a fluent API style.
  • Builder Pattern: Create builder functions for constructing complex structs step by step.

Installation

  1. Open Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or use the shortcut Ctrl+Shift+X.
  3. Search for vscode-weaver.
  4. Click the Install button to install the extension.

Usage

  1. Open a Go file in Visual Studio Code.
  2. Select the struct for which you want to generate boilerplate code.
  3. Use the shortcut Ctrl+Shift+P to open the command palette and search for vscode-weaver.
  4. Choose the desired pattern (Getter, With, Builder) from the available options.
  5. The extension will generate and insert the corresponding boilerplate code in your Go file.

Contributing

Feel free to contribute by submitting issues, feature requests, or pull requests on the GitHub repository.


Happy coding with vscode-weaver!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft