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
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).
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 .
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.
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.
Open command palette with Ctrl/Cmd + p
and type in Open Default Keyboard Shortcuts(JSON)
then Enter
or click on it
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With