vscode-docomment icon indicating copy to clipboard operation
vscode-docomment copied to clipboard

Connect to keyboard shortcut

Open ivavid opened this issue 5 years ago • 1 comments

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.

ivavid avatar Aug 05 '19 13:08 ivavid

I also want to know how to solve this problem, because I also want to customize the shortcut

SF-Simon avatar Feb 03 '20 05:02 SF-Simon