Comment toggling in VS Code
QUICK TIPS #1
The Microsoft Visual Studio Code Editor enables fast, intelligent code commenting shortcuts for many languages as a feature.
Line commenting
This shortcut saves the most time for me!
- Highlight the lines you wish to comment in or out.
- Hit the shortcut sequence.
MacOS: command
+ /
Windows & Linux: ctrl
+ /
Java
Python
Block commenting
- Highlight the lines you wish to comment in or out.
- Hit the shortcut sequence.
MacOS: shift
+ option
+ A
Windows: shift
+ alt
+ A
Linux: ctrl
+ shift
+ /
Java
Python
Useful Links
MacOS
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
Windows
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
Linux
https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf
VS Code Key Bindings Doc
You can edit all shortcuts.