comment a block of code in visual studio code code example Example: comment out code visual studio Ctrl+K+C Ctrl+K+U