visual studio comment selected code example Example: how to comment selection in visual studio In Visual Studio: Ctrl+K+C will comment, Ctrl+K+U Will uncomment