Using Visual Studio Code
9. Commenting out code blocks
Another useful trick is the ability to comment out a block of code. You might do this if you are experimenting and want to remove code from your program without actually deleting it.
To comment / uncomment a code block:
- Highlight the code to comment or uncomment
- Press Ctrl - / (Control and forward slash)
Most IDE's colour commented code green as an extra visual cue.
VS Code can do this for any language it has hinting enabled for.