how to comment a line on visual studio code code example Example 1: comment out code visual studio Ctrl+K+C Ctrl+K+U Example 2: comment a line in visual studio Ctrl+K, Crtl+C