Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>SurroundNew to Visual Studio Code? Get it now.
Surround

Surround

Sword

|
3,485 installs
| (0) | Free
Surround selection with if, try-catch in Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-surround README

Surround selection with if, try-catch

Installing

This extension is available for free in the Visual Studio Code Marketplace

ext install vscode-surround

Usage

Surround with if

  • Select what you want to surround
  • Press cmd+shift+p open command panel
  • Choose Surround with if

Surround with try-catch

  • Select what you want to surround
  • Press cmd+shift+p open command panel
  • Choose Surround with if

Release Notes

1.0.0

First release

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