All writing

Toggling 2 Views with 1 Hotkey in VSCode

Want to switch between two different views in VSCode with a single hotkey? Well, that’s where a little studio engineering comes in handy, my hard-rocking amigo!

The GitLab Workflow extension: https://marketplace.visualstudio.com/items?itemName=GitLab.gitlab-workflow

The keybindings.json shown in the video:

[
    {
        "key": "shift+cmd+g",
        "command": "workbench.view.scm",
        "when": "focusedView != 'workbench.scm'"
    },
    {
        "key": "shift+cmd+g",
        "command": "issuesAndMrs.focus",
        "when": "focusedView == 'workbench.scm'"
    }
]