Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ctrl + A and similar selection manipulation shortcuts not working in visual code

Select all, copy, cut, and paste are not working by using the usual keyboard shortcuts ctrl + a, c, x, or v.

like image 398
arpansahu Avatar asked Dec 21 '25 19:12

arpansahu


2 Answers

for VS Code 1.55.1 I resolved this problem by 2 ways :

  1. simply by uploading the keymaps of my long favorite editor as proposed by the manual https://code.visualstudio.com/docs/getstarted/keybindings:

enter image description here

so follow the menu :

File > Preferences > Keymaps

  1. correcting manually the keyboard shortcuts which was in my case curiously corrupted, lacking of the necessary "when clause context" which was set with "-" However just open the keyboard shortcuts :

File > Preferences > Keyboard Shortcuts

Search the command "Select All" then right click on "When" (clause context) and select the "Change When Expression" visual illustration

and tape :

editorFocus

which command to the editor "Select All" when editor is set as Focus on CTRL + A

More about the when clause context : visual studio code api reference on "when clause context"

like image 106
marcdahan Avatar answered Dec 24 '25 09:12

marcdahan


I also faced the same issue like you in VS code.
It is probably because you installed the extension like Vim which changed the key binding like crtl + a and others.
To fix it simply, you just uninstall that extension and reload the VS Code and it should be working fine after that. enter image description here

like image 31
Kingston Avatar answered Dec 24 '25 11:12

Kingston



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!