Hi, I'm Liam

I talk about code and stuff

Toggling 2 Views with 1 Hotkey in VSCode

Published on

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'"
    }
]
Photo of Liam Hammett
written by
Liam Hammett
Found a typo? Suggest a fix here!
Hit me up on Twitter / GitHub / LinkedIn / email me
Copyright © 2024 Liam Hammett and all that kind of stuff