Surround lines of code with code snippets in Visual Studio

‘Surround With…’ snippets can be a useful time saver in Visual Studio. They allow us to surround the highlighted code with built in or custom code snippets.

The example below is simple and shows a single Console.WriteLine statement being put in an if block….

Leave a Reply

Your email address will not be published.