Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Snippet Selection ForgeNew to Visual Studio Code? Get it now.
Snippet Selection Forge

Snippet Selection Forge

VaultOps

|
1 install
| (0) | Free
Converts selected code into reusable snippet JSON payloads instantly.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Snippet Selection Forge

Converts selected code into reusable snippet JSON payloads instantly.

Archetype: snippet.toolbox (snippets)

Usage

Use the Command Palette (Ctrl/Cmd+Shift+P) and run the commands listed below.

Command surface

  • snippet-selection-forge.snippetFromSelection - Create snippet from selection: Build a VS Code snippet JSON block from selected text.
  • snippet-selection-forge.wrapSelection - Wrap selection template: Wrap selected text with a chosen code template.

Toolkit overview

This archetype is intentionally lightweight: it converts selection context into snippet-ready artifacts and wrappers.

Commands

  1. Generate snippet JSON from selected code.
  2. Wrap selection with try/catch or logging templates.

Local development

npm install
npm run build
npm test

Use F5 in VS Code to launch an Extension Development Host.

Packaging

npm run package

Module notes

  • UI settings are exposed in workspace settings under this extension namespace.
  • Local run metadata uses ExtensionContext.globalState only.
  • Analytics is local-only and disabled unless FOF_ANALYTICS_OPT_IN=true.

Marketplace submission notes

  • Set a real publisher in package.json.
  • Replace placeholder assets in assets/ (icon + screenshots).
  • Upload .vsix or release source archive from dist-submission/.

Support

For support, contact support@example.com.

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