Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode Keyboard command ids

When creating or editing the keybindings.json file v1.2.1 of Visual Studio Code requires not only the key to bind but also the 'CommandID' and 'When' condition.

I am looking for a complete list of 'CommandIDs' available to use and have been unable to find one. Where is that complete list of commands ?

Thanks

like image 956
ChiliYago Avatar asked Jun 15 '16 19:06

ChiliYago


People also ask

How can I see keyboard shortcuts in VS Code?

You can view the currently active keyboard shortcuts in VS Code in the Command Palette (View -> Command Palette) or in the Keyboard Shortcuts editor (File > Preferences > Keyboard Shortcuts).

What is Ctrl Shift P in VS Code?

You can define a keyboard shortcut for any task. 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 .

What does Ctrl S do in VS Code?

When I press Ctrl + S in the Visual Studio Code to save file, it removes all the JavaScript formatting or scatters all the code in the file.

How do you use VS Code commands?

The most important key combination to know is Ctrl+Shift+P, which brings up the Command Palette. From here, you have access to all of the functionality of VS Code, including keyboard shortcuts for the most common operations. The Command Palette provides access to many commands.


2 Answers

Open command palette with Ctrl/Cmd + p and type in Open Default Keyboard Shortcuts(JSON)

then Enter or click on it

like image 128
Bakhtiiar Muzakparov Avatar answered Oct 18 '22 18:10

Bakhtiiar Muzakparov


Preferences > Open Keyboard Shortcuts.

Click to edit keybindings.json for advanced customization. At the bottom of keybindings.json is a list of available commands:

// Here are other available commands:

This is mentioned (but hard to find) on the page shared by seairth.

like image 45
roblingle Avatar answered Oct 18 '22 18:10

roblingle