VSCode keybinding to view/hide Git tab

Viewed 39

Is there any keybinding in VSCode that can view/hide Git tab?

I hate reaching for the mouse and I don't have enough screen space to keep Git always on.

According to this answer https://stackoverflow.com/a/65816845, how i can do the same with Git?

1 Answers

Actually i found answer:

    {
    "key": "ctrl+g",
    "command": "workbench.view.scm"
},
{
    "key": "ctrl+g",
    "command": "-workbench.view.scm"
},
{
    "key": "ctrl+g",
    "command": "workbench.action.toggleSidebarVisibility",
    "when": "activeViewlet == 'workbench.view.scm'"
},
{
    "key": "ctrl+g",
    "command": "-workbench.action.toggleSidebarVisibility",
    "when": "activeViewlet == 'workbench.view.scm'"
},
Related