Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code waiting for second key of chord. (Ctrl + A)

This happened just today when I wanted to select the whole text of my file. It kept saying:

(Ctrl + A) was pressed. Waiting for second key of chrod...

Here is a screenshot of my select all keyboard shortcuts. How can I using Ctrl + A to select all text.

enter image description here

like image 211
Real Noob Avatar asked Aug 12 '19 07:08

Real Noob


People also ask

How do I enable shortcut keys in VS Code?

All keyboard shortcuts in VS Code can be customized via the keybindings. json file. To configure keyboard shortcuts through the JSON file, open Keyboard Shortcuts editor and select the Open Keyboard Shortcuts (JSON) button on the right of the editor title bar. This will open your keybindings.

What does Ctrl Shift P do in VS Code?

Define keyboard shortcuts for tasks# From the Command Palette (Ctrl+Shift+P), select Preferences: Open Keyboard Shortcuts File, bind the desired shortcut to the workbench. action. tasks. runTask command, and define the Task as args .


Video Answer


1 Answers

You have another key binding that begins with Ctrl+A, something like this:

Screenshot of key bindings with Ctrl+A prefix

A sequence of multiple keystrokes pressed one after another (rather than simultaneously) is called a "chord".

You might have accidentally created it, or might have recently installed an extension that adds the problematic binding. To find it, do like I have done in the screenshot and type "ctrl a" into the Keyboard Shortcuts search box (that tab can be opened by typing Ctrl+K then Ctrl+S). Then look for a binding that begins with Ctrl+A but has something else after it (in my case, another Ctrl+A, but it could be almost anything).

When you find the offending binding, right-click on it, and either remove or change it. Then Ctrl+A alone will resume working.

Note: This question and its answer pertain to Visual Studio Code, which is different from Visual Studio. See this question for information about the equivalent situation in Visual Studio.

like image 128
Scott McPeak Avatar answered Sep 22 '22 16:09

Scott McPeak