DEV Community


Extension for vscode: Bringing "surround with" functionality to vscode.

nikiforovall profile image Oleksii Nikiforov ・1 min read

I would like to share with you an extension for vscode that allows you to wrap your code in C# snippets. (

This extension supports different concepts to trigger functionally to surround your code.

Source code:


You can just simply hit CTRL + SPACE and if you have some code selected, you will get completion items that you can choose from by using arrow keys:



If your favorite command-pallette. You can invoke command "C#: Surround With" (or CTRL+SHIFT+S, CTRL+SHIFT+S) and you will be prompted for a code snippet.


Hope you find this useful, have fun! 🎉

Discussion (0)

Forem Open with the Forem app