claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

Disable slashes on multi-line messages

Open moltar opened this issue 7 months ago • 1 comments

Is it possible not to use slashes on multi-line message?

I am not writing shell commands.

I really don't understand why these slashes are there?

Image

moltar avatar Jun 18 '25 12:06 moltar

The issue is similar to #193

Basically when CC adds the "integration", all it does is add a key binding:

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

Where text is prefixed with \ so it's a deliberate decision.

Because it look like VS Code does not support \r\n for some reason.

Any of the following variations do work tho on a mac:

Extra leading space:

 \r\n
^ space

Just two new lines, as a side effect every Shift+Enter will produce an extra blank line.

\n\n

moltar avatar Jun 25 '25 09:06 moltar

Also, please see issue https://github.com/anthropics/claude-code/issues/2754.

edsonbrusque avatar Jul 18 '25 12:07 edsonbrusque

This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.

github-actions[bot] avatar Dec 03 '25 10:12 github-actions[bot]