Describe the bug
When using Copilot CLI within a Linux Dev Container or GitHub Codespaces instance, /terminal-setup creates a ~/.config/Code/User/keybindings.json or ~/.config/Code - Insiders/User/keybindings.json file, which doesn't do anything because keybinding configs work at the host layer.
This causes Shift+Enter and Ctrl+Enter keypresses to not insert newlines as intended, and also makes copilot think they're correctly set up when they're not:
● Key bindings for VS Code are already set up. Your terminal already has multiline support with Shift+Enter and Ctrl+Enter.
Workaround
-
Activate Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
-
Select Preferences: Open Keyboard Shortcuts (JSON)
-
Insert the following into the JSON array:
{
"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"
}
}
Affected version
0.0.363
Steps to reproduce the behavior
- Remove
Ctrl+Enter and Shift+Enter keybindings from keybindings.json
- Install and run Copilot CLI from inside a Linux Dev Container or GitHub Codespaces instance
- Run
/terminal-setup or choose yes when prompted during the first-time setup flow
Expected behavior
Keybindings should be added to the host-level keybindings.json config.
Additional context
No response
Describe the bug
When using Copilot CLI within a Linux Dev Container or GitHub Codespaces instance,
/terminal-setupcreates a~/.config/Code/User/keybindings.jsonor~/.config/Code - Insiders/User/keybindings.jsonfile, which doesn't do anything because keybinding configs work at the host layer.This causes
Shift+EnterandCtrl+Enterkeypresses to not insert newlines as intended, and also makescopilotthink they're correctly set up when they're not:Workaround
Activate Command Palette (
Ctrl+Shift+PorCmd+Shift+P)Select Preferences: Open Keyboard Shortcuts (JSON)
Insert the following into the JSON array:
{ "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" } }Affected version
0.0.363
Steps to reproduce the behavior
Ctrl+EnterandShift+Enterkeybindings fromkeybindings.json/terminal-setupor choose yes when prompted during the first-time setup flowExpected behavior
Keybindings should be added to the host-level
keybindings.jsonconfig.Additional context
No response