Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to keyboard shortcut #79

Open
ivavid opened this issue Aug 5, 2019 · 1 comment
Open

Connect to keyboard shortcut #79

ivavid opened this issue Aug 5, 2019 · 1 comment
Assignees

Comments

@ivavid
Copy link

ivavid commented Aug 5, 2019

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.

@kasecato kasecato self-assigned this Aug 24, 2019
@SF-Simon
Copy link

SF-Simon commented Feb 3, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants