vscode-docomment
vscode-docomment copied to clipboard
Connect to keyboard shortcut
I tried to create a keyboard shortcut for ///
like so:
keybindings.json:
"key": "ctrl+alt+d",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "///"
},
"when": "editorTextFocus && editorLangId == csharp"
but the cursor is inserted after the first /
instead of on the second line after ///
.
I then tried to set "docomment.activateOnEnter": true
expecting the documentation snippet to appear after pressing Enter. But pressing Enter after ///
does not generate the documentation snippet.
A docomment
setting for a keyboard shortcut would be welcome.
I also want to know how to solve this problem, because I also want to customize the shortcut