vs code toggle line comment mac
The hard way:
Add comment: Command + K followed by Command + C
Remove comment: Command + K followed by Command + U
The easy way:
Toggle line comment: Command + /
Recommended fix if the easy way don't work:
- Add the following to your keybindings.json in VS Code:
[
{
"key": "cmd+7",
"command": "editor.action.commentLine",
"when": "editorFocus"
}
]