ShanN
ShanN

Reputation: 943

Shortcut for Copy/Paste not work in VSCode

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

Answers (5)

blake_5000
blake_5000

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

Damian
Damian

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

Uddav Magar
Uddav Magar

Reputation: 19

Uninstall vim in extension of vs code.

  1. Go to extension of vs code
  2. You see a list of extension you have installed in vs. You should scroll through for vim extension.
  3. click on vim extension.
  4. click on uninstall.

Hope this solves your problem

Upvotes: 1

cefn
cefn

Reputation: 3331

You may well be experiencing this bug... https://github.com/microsoft/vscode/issues/124296

Upvotes: 3

Abi Chhetri
Abi Chhetri

Reputation: 1447

look at

File -> Preferences -> Keyboard Shortcut

Or

Press Ctrl+k Ctrl+s

enter image description here

Upvotes: 8

Related Questions