In vscode there is a command named View: Toggle Panel
, it can control the visiblity of bottom panel. So there must be a visibility status of that panel ...
I want to know the visibility status of that panel because I want to make some keybinding myself, using "when-clause".
I tried to read the docs but didn't find an answer.
Is there a "when-clause" of bottom panel visibility status?
CodePudding user response:
panelVisible
sideBarVisible
Using the Command Palette command Developer: Inspect Context Keys
you can see the state of all active context keys in vscode.
- Open Help/Toggle Developer Tools/Console
- Trigger
Developer: Inspect Context Keys
(I suggest with both the panel and sideBar visible) - Click anywhere in vscode
- In the Developer Tools console there will be a large object added with all the context keys. Expand it and do a find Ctrl F in the console to look at
panel
orvisible
and see if something is useful. And you will find
panelVisible: true/false