kasecato / vscode-intellij-idea-keybindings

Port of IntelliJ IDEA key bindings for VS Code.
https://marketplace.visualstudio.com/items?itemName=k--kato.intellij-idea-keybindings
MIT License
817 stars 135 forks source link

Please Support in Using Enter to Apply Code Suggestion #239

Open kazemcodes opened 2 years ago

kazemcodes commented 2 years ago

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 commented 8 months ago

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"
    },
kasecato commented 6 months ago

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 commented 5 months ago

Released v1.6.1

kasecato commented 4 months ago

Reverted due to #343