Snippet Wrap Template Kit
Wraps selection with templates and generates reusable snippets safely.
Archetype: snippet.toolbox (snippets)
Usage
Use the Command Palette (Ctrl/Cmd+Shift+P) and run the commands listed below.
Command surface
snippet-wrap-template-kit.wrapSelection - Wrap selection template: Wrap selected text with a chosen code template.
This archetype is intentionally lightweight: it converts selection context into snippet-ready artifacts and wrappers.
Commands
- Generate snippet JSON from selected code.
- 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.
| |