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

Please Support in Using Enter to Apply Code Suggestion #239

Open
kazemcodes opened this issue Oct 1, 2021 · 4 comments
Open

Please Support in Using Enter to Apply Code Suggestion #239

kazemcodes opened this issue Oct 1, 2021 · 4 comments
Assignees

Comments

@kazemcodes
Copy link

kazemcodes commented Oct 1, 2021

Hi,
I really don't like using tab key to apply the code suggestion it would be better if we can use enter key like the IntelliJ do , to apply the code suggestion.
right now when hit enter the cursor will go to next line without applying the code suggestion, I need to use Tab Key in order to apply the code suggestion
Thank You for Your Hard Work,

@0blu
Copy link

0blu commented Dec 21, 2023

Why did you close the issue? Its still a bug.

For the time being just remove these entries from your keybindings.json

    {
        "command": "-acceptSelectedSuggestion",
        "key": "tab"
    },
    {
        "command": "-acceptSelectedSuggestion",
        "key": "enter"
    },

@kazemcodes kazemcodes reopened this Dec 23, 2023
@kasecato kasecato self-assigned this Mar 3, 2024
@kasecato
Copy link
Owner

kasecato commented Mar 3, 2024

I understand this is a placeholder caret move for the snippet placeholder that appears when you type fori
IntelliJ is binding it to both Tab and Enter, but VSCode only supports it as Tab
So, this will be supported by below codes, and I'll add it to this extension

            {
                "key": "enter",
                "mac": "enter",
                "command": "jumpToNextSnippetPlaceholder",
                "when": "editorTextFocus && hasNextTabstop && inSnippetMode",
                "intellij": "Next Template Variable or Finish In-Place Refactoring"
            },

@kasecato kasecato added this to the v1.6.1 milestone Mar 3, 2024
kasecato added a commit that referenced this issue Mar 3, 2024
Add #239 that Support in Using Enter to Apply Code Suggestion
@kasecato
Copy link
Owner

kasecato commented Apr 1, 2024

Released v1.6.1

@kasecato
Copy link
Owner

kasecato commented May 2, 2024

Reverted due to #343

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

No branches or pull requests

3 participants