“how to uncomment in visual studio” Code Answershift+alt+A //Toggles comments in VScode.
Shortcut key for uncomment in Visual Studio 2019 Select the piece of code that you would like to uncomment. Then click CTRL + K + U to uncomment.
Comment and uncomment blocks of code Press Ctrl+Shift+/ .
Windows: Ctrl + K + U. Mac: Command + K + U.
I just updated my VSCode to the version you mentioned. The combinations work exactly as you described. It must be something that was changed on your computer.
Go to File => Preferences => Keyboard Shortcuts
(Or press CTRL + K and then CTRL + S)
look for Remove Line Comment
. In my settings it still says
If your VSCode has a different keybinding, change it back to what you want.
I had the same problem. In the newer version its actually CTRL+/ to uncomment.
CTRL+/
Note that this is the / on the numeric keypad!
Mac OS you can use COMMAND
+ /
for commenting and uncommenting
In windows Inorder to comment and uncomment the code in VS CODE
use ctrl+ / to uncomment in VS Code.
On Windows, I am using strg + #
It's a default shortcut in VSCode --> toggle line comment but it works also for blocks.
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