How to read vscode keybindings within an extension

Viewed 16

I am writing an extension that does things with keyboard shortcuts. I would like to read all current shortcuts and act accordingly. Currently I am reading them from this file:

~/Library/Application Support/Code/storage.json

Is there a way to pull that from vscode module instead?

1 Answers

You need to perform some steps, once you tested the current implementation.

  1. Set a contribution point.
  2. Create a manifest as shown here
  3. Use a command on the VS code API to perform your action
  4. Publish it to the extensions market place. Alternatively package it into a VSIX. More info.
Related