error cant load data
error cant load data

Reputation: 43

VSCODE Accurate keybinding, want to know current context. How to do?

Many of plugins can set their own specific "context" through the undocumented API SetContext. Since the documentation doesn't list these custom contexts, I can't just look into the documentation to know how to config my own keybinding in the right way. Is it possible to know the current context array?

For example: I would like to use keyboard shortcuts (no mouse) to navigate to the "git lens" panel (already have this), and then mark some files to stage by keyboard navigation, then invoke the commit editor, and just 'commit' my stuff.

Upvotes: 4

Views: 873

Answers (1)

Alex
Alex

Reputation: 67789

  • Run from command palette Developer: Inspect Context Keys
  • Click on any SCM viewlet element
  • Open Developer Tools Developer: Toggle Developer Tools

enter image description here

Upvotes: 10

Related Questions