Skip to content

VS Code keybindings set by /terminal-setup incompatible with Claude Code #897

@JeffreyCA

Description

@JeffreyCA

Describe the bug

Keybindings set by Copilot CLI (/terminal-setup):

    {
        "key": "ctrl+enter",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\\\r\n"
        }
    },
    {
        "key": "shift+enter",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\\\r\n"
        }
    },

Keybindings set by Claude Code:

    {
        "key": "shift+enter",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {
            "text": "\u001b\r"
        }
    },

When set to \\\r\n, pressing shift+enter in Claude Code results in extra backslash characters (\) being inserted.

Consider changing it to \u001b\r, which seem to work properly in both tools.

Affected version

0.0.374

Additional context

Running on Windows machine, in VS Code integrated terminal inside of a Linux Dev Container

Related bug: #657

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions