-1
I’m trying to put the shortcut Ctrl + / to comment lines in vscode, but I’m having trouble letting the shortcut complement, ie make the shortcut Ctrl + / add comments and also do the job of removing comments.
Here is part of the snippet of my keybindings.json configuration code:
Where Ctrl+abnt_c1 would be the Ctrl shortcut + /
{
"key": "ctrl+abnt_c1",
"command": "editor.action.addCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+abnt_c1",
"command": "editor.action.removeCommentLine",
"when": "editorTextFocus && !editorReadonly"
},
Ae vlw, now it’s working the way I wanted it to. Abs.
– Josias