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.