3

I have VSCode installed on my MacOS Mojave. The Ctrl+C command can work normally on my System Terminal (as on the right of the figure), but does not work on my VSCode integrated Terminal (as on the left of the figure).

VSCode integrated Terminal

Sometimes it appears like:

VSCode integrated Terminal uncontrolled

My VSCode version: 1.78.0, OS: Darwin x64 18.7.0, Date: 2023-05-03T20:11:00.813Z (2 days ago)

It seems due to the Date: 2023-05-03T20:11:00.813Z (2 days ago), as the behaviors started around one or two days ago, but I cannot figure things out.

I guess there is something wrong with my settings.json, but I did not touch to that at all. Can anyone help me to get the VSCode integrated Terminal back?

Luc Nguyen
  • 31
  • 3
  • Does this answer your question? [Make Ctrl+C=copy and Ctrl+Shift+C=interrupt in VSCode terminal](https://stackoverflow.com/questions/45257525/make-ctrlc-copy-and-ctrlshiftc-interrupt-in-vscode-terminal) – GROVER. May 06 '23 at 03:05
  • "does not work" _**to do what**_? What do you want it to do? Copy the selection (if any)? Get passed through to the shell (presumably where the shell interprets it to send an interrupt signal to the running process)? [set your computer on fire](https://en.wikipedia.org/wiki/Halt_and_Catch_Fire_(computing))? – starball May 06 '23 at 03:11
  • @user, sorry for mis-explanation. I want it to be "cancel" and "interrupt" as on the System terminal on the right and as usual. Right now, my Ctrl+C on VSCode integrated Terminal does not do anything. – Luc Nguyen May 06 '23 at 03:14
  • @GROVER. I opened the `keybindings.json` files and found no entry with key `ctrl+c`, how should I add such entry to indicate an `interrupt`? – Luc Nguyen May 06 '23 at 03:27
  • open your keyboard editor in VS Code and search "ctrl+c", and then tell us every command that is bound to that exact keyboard shortcut and has a when-clause that includes `terminalFocus`. – starball May 06 '23 at 03:27
  • @GROVER. There is also a strange thing, that two days ago, my terminal background is light yellow like the main screen. However, when this weird thing happened, the Terminal background also changed to white. Do you think they are related? – Luc Nguyen May 06 '23 at 03:28
  • @user. There is no such entry. – Luc Nguyen May 06 '23 at 03:39

0 Answers0