Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 757
error cant load data Avatar asked Oct 28 '25 17:10

error cant load data


1 Answers

  • 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

like image 67
Alex Avatar answered Oct 30 '25 15:10

Alex



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!