Try to disable all plugins, because they can change editor's behaviour. For example if use Babel ES6/ES7 plugin, editor comments .jsx syntax by // instead of {/*. You see see the issue here.
If we press cmd + / by default vs code will do single line comments which can't be applied for JSX. Just install the below vs code extension it will be fine.
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).
I spent few hours on this problem, and the easiest solution I found is the following:
Yes the problem is coming with the installation of Babel ES6/ES7 extension as many noticed,
and when you uninstall or deactivate it, VScode retrieves it's normal behavior:
Ctrl + / => Toggle Line Comment for line or block selected with // for JS, JSX, ... files;
Shift + Alt + A => Toggle Block Comment for line or block selected between <!----> in HTML files, between /**/ in JS expressions and between {/**/} in JSX files for markup tags in render/return...
So if you want to keep Babel ES6/ES7 extension active and still have such a behavior:
You can parameter your own shortcut key-binding combination in the file keybindings.json
( File/Preferences/Keyboard Shortcuts (or Ctrl+K+S) and then click the little file icon on top right
for selecting Open Keyboard Shortcuts wich opens keybindings.json)
where you use the VScode build-in command "editor.action.insertSnippet" as following:
Place the /n where you want in the expression for breaking lines, and the $0 for final placement(s) of cursor.
Then save, and it's working straight :) only in JS and JSX files
If you want to specify another language just replace 'javascript' in the "when" expression
by the one you want from this VScode Language Identifiers list :
https://code.visualstudio.com/docs/languages/identifiers#_known-language-identifiers
And of course if you want another snippet behavior : just replace the {/* by what you want in the "args" expression.