On Swiss keyboards shift+cmd+7
is the default comment / block-comment toggle.
In an HTML file with a <script>
node it works only on non-JavaScript code like CSS but it won’t toggle in the JavaScript portion.
Even when invoked from the dropdown menu it doesn’t work.
It works on ‘pure’ JS files.
keybindings.json entry:
{
"key": "shift+cmd+7",
"command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly"
},