


I then selected Edit.CommentSelection, selected Use new shortcut in Text Editor, pressed Alt+C, then clicked Assign. I entered the word "comment" and it displayed the relevant commands. For the 2010 version, please use the v1.5 in Github.) v1.5 Fix a bag about the narrow cursor at the start of a line. v1.7 Fix a bug that it is not working with VS2015 or earlier. The one challenge is finding a decent keyboard shortcut that isn't already taken. 'Edit' -> 'Advances' -> 'Toggle Comment' Change Log. If you click on Tools -> Options, and then select Environment -> Keyboard, you can select a command and assign a new keyboard shortcut. Fortunately Visual Studio allows you to add your own keyboard shortcuts. It's not much of a "shortcut".Īfter several years of this nagging me, I finally bothered to lookup a better alternative. I find those shortcuts to be pretty annoying, as they require me to use both hands to press those key combinations.

Visual Studio does have keyboard shortcuts for Comment and Uncomment, but they are the unfortunate double-shortcut combinations: Ctrl+K, Ctrl+C to comment, and Ctrl+K, Ctrl+U to uncomment. While those buttons are handy, they require you to use the mouse, and that can sometimes be tedious if you are having to also make multiple code selections with the mouse.
