ToggleComment icon indicating copy to clipboard operation
ToggleComment copied to clipboard

New Visual Studio 2019 update seems to have broken this

Open BenMcLean opened this issue 5 years ago • 4 comments
trafficstars

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!

BenMcLean avatar Jun 01 '20 23:06 BenMcLean

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.

BenMcLean avatar Jun 01 '20 23:06 BenMcLean

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.

nick-heinz avatar Jun 12 '20 14:06 nick-heinz

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.

nistre avatar Jul 02 '20 13:07 nistre

after removing shortcut for GenerateDocumentationComments it also required to manually set corrent shortcut for ToggleComment, in the same settings window

somelun avatar Jul 07 '20 10:07 somelun