Closed xDae closed 7 years ago
Commenting is done by VSC directly, not this grammar per se.
You can select the lines you want and press Ctrl+/ to comment them out in one shot. Alternatively, you can also set a block comment hot key. I have mine set to Ctrl+Shift+/
{ "key": "ctrl+shift+/", "command": "editor.action.blockComment",
"when": "editorTextFocus && !editorReadonly" }
If you are referring to something else, can you please clarify? Thanks.
i meant, when i comment the code with the keys, is wrong inside JSX syntax
now:
correct:
Unfortunately that doesn't seem to be something that can be changed with grammar in VS Code. The commenting is handled outside of the grammar in language-configuration.json
, but that has no concept of context.
comenting JSX manually is a pain 😅