Unlike in webstorm, I\'m unable to comment JSX code out in .js files in the Visual Studio Code.
I had the same issue until I converted the file language to Typescript React (typescriptreact).
If you want to configure this as the language for all .js files, add this to your settings.json (either globally, or at a project-level in /.vscode/settings.json).
"files.associations": {
"*.js": "typescriptreact"
}