Select the relevant section of code and press the key combination CTRL + K,S from the "Surround With:" context menu that appears, select "Visual C#" (or any other relevant category), select the relevant snippet (e.g. for, foreach, using etc.) and hit Enter. Your code will get wrapped by the relevant block.