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

C-c in terminal #1533

Open
ambs opened this issue Feb 11, 2023 · 3 comments
Open

C-c in terminal #1533

ambs opened this issue Feb 11, 2023 · 3 comments

Comments

@ambs
Copy link

ambs commented Feb 11, 2023

Hi
Is there a way to send C-c in the terminal for program interruption?
Or, at least, a way to map it, for instance, to C-c C-c?
Thanks

@nguyenthanhvuh
Copy link

same question here. Right now. I would expect pressing C-c in the terminal send a program termination, but instead it is waiting for a second key stroke.

@vkz
Copy link

vkz commented Mar 20, 2024

Add this to your keybindings.json:

  {
    "key": "ctrl+c",
    "command": "workbench.action.terminal.sendSequence",
    "args": {
        "text": "\u0003"
    },
    "when": "terminalFocus"
  }

@nguyenthanhvuh
Copy link

I think this works. Thank you.

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

No branches or pull requests

3 participants