how to comment code in visual studio 2019 code example Example: visual studio comment out block ctrl+k+c Will comment out the selected chunk of code in VS Code.