# yatki/vscode-surround

🔥 A simple yet powerful extension to add wrapper templates around your code blocks

Repository: https://github.com/yatki/vscode-surround
Canonical: https://ross.abutalabs.com/products/vscode-surround
Homepage: https://marketplace.visualstudio.com/items?itemName=yatki.vscode-surround
Language: TypeScript
License: MIT
License Family: permissive
Topics: vscode-extension, snippets, wrapper, surround, typescript, shortcut, vscode-snippets
Last push: 2026-03-22T15:15:05+00:00

## Health v2 (maintenance only)
Score: 56/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 73, release rhythm 8, longevity 100
- inputs: {"age_days": 3014, "days_push": 164, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1236, forks 59 (observed 2026-08-28T04:04:05.176915+00:00)

## What it is
A VS Code extension that wraps selected code blocks with customizable templates such as if/else, try/catch, and loop snippets. It supports multi-selection, language identifiers, per-snippet keybindings, and works in VS Code for Web.

## Use cases
- wrap selected code in try/catch in vscode
- surround code block with if statement shortcut
- add custom wrapper snippets in vs code
- wrap multiple selections at once in editor
- assign keyboard shortcuts to surround snippets
- wrap code with for loop template

## When to choose
- you frequently wrap code blocks in boilerplate like try/catch or loops in VS Code
- you want customizable, per-snippet keybindings and multi-selection support
- you use vscode.dev and need the same wrapping workflow in the browser

## When to avoid
- you use an editor other than VS Code or compatible forks
- you only need built-in snippet expansion without selection wrapping
- you want fully automated refactoring rather than manual template wrapping

## Facets
- artifact type: plugin
- maturity: active
- function: editor, developer-tools, templating, boilerplate
- domain: developer-tools, text-editors
- platform: editor-plugin, cross-platform, browser
- tags: vscode-extension, snippets, code-wrapping, surround, keybindings, multi-selection

## Member repositories
- yatki/vscode-surround (main) score 56

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.176915+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:22:02.039245+00:00, confidence not recorded.
  - readme: https://github.com/yatki/vscode-surround (fetched 2026-08-28T04:04:05.176915+00:00, sha cdab42d4c830)
  - homepage: https://marketplace.visualstudio.com/items?itemName=yatki.vscode-surround (fetched 2026-08-29T12:21:24.131693+00:00, sha 204489e6c9d2)
  - site_page: https://code.visualstudio.com/docs/languages/identifiers (fetched 2026-08-29T12:21:24.141067+00:00, sha 8837465a25d3)
  - site_page: https://code.visualstudio.com/docs/extensionAPI/vscode-api (fetched 2026-08-29T12:21:24.143126+00:00, sha 742a5a454658)
- Data as of 2026-08-30T08:39:29.467469+00:00.
