ToggleComment
ToggleComment copied to clipboard
New Visual Studio 2019 update seems to have broken this
This is my number one most important extension and a new recent update to Visual Studio 2019 seems to have broken it. Pressing ctrl+/ has no effect now. Please fix!
I have discovered that another shortcut, for generating method documentation, was assigned to ctrl + / by Microsoft by default. I believe that's what's overriding ctrl + / for ToggleComment.
ctrl + / is so obviously better for toggling commented lines. Why doesn't Microsoft just adopt it.
For anyone else who has this problem, removing the shortcut for EditorContextMenus.CodeWindow.GenerateDocumentationComments fixes the issue. It was overriding the global ToggleComment shortcut, like @BenMcLean said.
This doesn't fix the issue for me. After removing the binding for: EditorContextMenus.CodeWindow.GenerateDocumentationComments (and restarting VS) this issue persists for me. I had to resolve it by changing the value in -> -> Environment -> Keyboard ->"Apply the following additional keyboard mapping scheme:" I had to change the drop-down option from "(Default)" to "Visual Studio Code". I don't know why removing that binding wasn't sufficient for me.
after removing shortcut for GenerateDocumentationComments it also required to manually set corrent shortcut for ToggleComment, in the same settings window