Search code examples
visual-studio-codeshortcut

VScode shortcut for switch to last tab


I saw other question, but it was seven years ago, so maybe is now possible to make shortcut what will switch us to last tab? I mean like CTRL+9 in Google browser.


Solution

  • So I did it by installing extension what allow me make shortcut for multiple command and assign ctrl+0 to go to first tab and then go one tab before.

    To do that, install extension CTRL+P and type ext install ryuta46.multi-command after that add this to shortcut JSON file

    
        {
        "key": "ctrl+0",
        "command": "extension.multiCommand.execute",
        "args": { 
            "sequence": [
                "workbench.action.openEditorAtIndex1",
                "workbench.action.previousEditor"
            ]
        }
        },