Reputation: 943
Now I'm using the latest Visual Studio Code on Ubuntu 20.04 and face the problem with the Copy/Paste shortcut. When I use Ctrl+C, it is not Copy the chosen code to the clipboard, it has been changed to Insert mode instead. And I even not be able to use Ctrl+X and Ctrl+V. I have tried to reinstall the program but the problem still there. With other IDE, it still works normally. So, please help to fix this problem!
Upvotes: 10
Views: 14675
Reputation: 15
I am also on Ubuntu, but version 22.04. For me, it was an extension causing ctrl + c to no longer copy. Look at your extensions and see what shortcut keys they have mapped. Or just disable each extension and try to copy/paste until it works and then you'll have your culprit.
Upvotes: 0
Reputation: 39
You might have Ctrl+C assigned to multiple commands. Just right click on any file to go to the last option - Command Pallete, type the command Copy and see what other extension is using Ctrl+C which is not related to copying, and just remove the command from that extension. Also if you right click on any file that contains cody / text you should see the the command Ctrl+C assinged to the option copy.
Upvotes: 2
Reputation: 19
Uninstall vim in extension of vs code.
Hope this solves your problem
Upvotes: 1
Reputation: 3331
You may well be experiencing this bug... https://github.com/microsoft/vscode/issues/124296
Upvotes: 3
Reputation: 1447
look at
File -> Preferences -> Keyboard Shortcut
Or
Press Ctrl+k Ctrl+s
Upvotes: 8