Under Tools > Options > Environment > Keyboard
is the setting Edit.ToggleLineComment
I can see that the shortcut for the selected command is set to Ctrl + / (Global)
I'd expect that when I pressed the shortcut, any selected code would be commented out, however, when pressing the shortcut nothing happens. What am I doing wrong?
Both VS Code and Android Studio toggle line comments with Ctrl + / . That is, when the lines are already commented out, pressing Ctrl+/ un-comment them.
Comment and uncomment blocks of code From the main menu, select Code | Comment with Block Comment. Press Ctrl+Shift+/ .
For the default keyboard mapping scheme, Ctrl + /
is assigned to EditorContextMenus.CodeWindow.GenerateDocumentationComments
. Make sure to remove this shortcut first.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With