'Vscode failing to comment in my JavaScript lines when using the comment in/out shortcut

Start: var x = 3;

I select the line and press ctrl + shift + 7

Result: // var x = 3; (works as expected)

I select the line again and again press ctrl + shift + 7

Result: // // var x = 3; (does NOT work as expected)

Desired Result: var x = 3; (This works when doing css and html comments, only not when doing js comments)

When using the text editor Atom, I get the desired result, however, when using Vscode, it doesnt work.

Atom > vscode ??? or what am I missing



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source