Skip to content

Visual Studio Tip: Commenting Multiple Lines

Commenting multiple lines is easy with keyboard shortcuts.

commenting multiple lines

Multiple lines can be commented and uncommented by selecting them and clicking the comment icon, or by using the keyboard shortcut [CTRL + E, C] to comment, and [CTRL + E, U] to uncomment.

commenting multiple lines

(Microsoft Visual Studio Ultimate 2012 Screenshots)