If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code.17 Apr 2015
How do you put comments in code?
- Make use of code annotations or tags. Many programming languages define standards for code commenting.
- Write down why you are doing something. Many developers use a comment to describe what their code is doing.
- Don't refer to other documents or comments.
- Write comments while writing code.
How do I comment in Visual Studio code?
Comment Code Block Ctrl+K+C/Ctrl+K+U Whether it's because you're trying to track down a "but," or experimenting with code change, from time to time you'll want to comment and uncomment blocks of code. If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code.17 Apr 2015