Search code examples
visual-studiokeyboard-shortcuts

Ctrl+C was pressed. Waiting for second key of chord (Visual Studio 2022)


Coming back from hollidays I start up my work computer, start Visual Studio 2022 Professional and all of a sudden Ctrl+C, that I expect to use to copy marked text, now doesn't work as expected.

Insted of copying the text Visual Studio instead "waits for second key of chord"..

I have never used anything but default key bindings/mappings and I have never altered or tampered with any of these settings, at least not conciously.

I checked if there are any updates to Visual Studio but there are none. I read through some threads about similar issues but they didn't help me. I can see that "Ctrl + C" is used by shortcut "Edit.Copy" so I tried removing it but it made no difference so I restored the "mapping scheme" to default and that's where I'm at right now.

How can I make just regular "copy text" work normally again in Visual Studio?

enter image description here


Solution

  • I managed to solve it by marking some code, right-click to get context window. There I saw that "Copy" was now bound to "Ctrl+Ins". So I went back to the settings shown in the picture in my post and "removed" Edit.Copy then I re-added it which seems to have done the trick. But why this problem occured in the first place I have no idea..

    Steps to fix this issue:

    1. First in "Tools > Options > Environment > Keyboard," remove the Ctrl+C binding from "Edit.Copy" enter image description here
    2. Re-add Ctrl+C by pressing the key combo while in the "Press shortcut key" box and clicking "Assign" (you'll notice, before pressing "Assign," that the command holding Ctrl+C hostage is shown at the bottom) enter image description here