Pages

Sunday, 14 October 2012

"Surround with" feature in Visual Studio.

“Surround with” is a very nice features in visual studio IDE. The overall objective of this feature is to surround the code snippets with a set of statement.

Let’s assume that, i have piece of code block and i want to add try-catch surround that code so rather than cut-copy code block “Surround With” feature comes handy.

For that, you need to select piece of code block that you want to surround then right click or simply press shortcut keys: “CTRL+K, S / CTRL +K , CTRL + S”. It will open intellisense from that select any option that you want.

Before “Surround with”

After “Surround with”


No comments:

Post a Comment