devxlogo

Quickly Surround a Block of Code in Visual Studio

Quickly Surround a Block of Code in Visual Studio

Visual Studio has the surround with code snippets that are handy and help save time to write code. A couple of the inbuilt code snippets include the if condition, for loop and so on.

Just select the code, and press ctrl + K + S : you will be presented with the surround with menu and choose an option there.

devx-admin

Share the Post: