visual-studio-codevscodevimvscode-keybinding

How can I keybind opening a new terminal to the right of my current opened files?


Currently I have the below snippet of code that doesn't really seem to do what I want it to do under my vim normal mode keybindings:

    {
        "before": ["<Leader>", "f", "t"],
        "commands": [
            "workbench.action.terminal.newInActiveWorkspace",
            "workbench.action.terminal.focus",
            "workbench.action.moveEditorToNextGroup"
        ],
        "when": "editorTextFocus && !terminalFocus && !quickInputVisible"
    },

I want it to open up a new terminal tab, and open it as a new tab of the files which are opened in the middle of VS Code (not on the bottom terminal part).


Solution

  • It sounds like you want one of these commands:

    Terminal: Create New Terminal in Editor Area
    workbench.action.createTerminalEditor  
    
    Terminal: Create New Terminal in Editor Area to the Side  (i.e., as a split/new group)
    workbench.action.createTerminalEditorSide