Wednesday, September 25, 2024

Controlling key movements in VS Code

// Key bindings to take cursor to Terminal

// C:/Users/student/AppData/Roaming/Code/User/keybindings.json

[   {   "key": "ctrl+down",

        "command": "workbench.action.terminal.focus"

    },

    {   "key": "ctrl+up",

        "command": "workbench.action.focusActiveEditorGroup",

        "when": "terminalFocus"

    }

]


// Key bindings to take cursor to Output

// C:/Users/student/AppData/Roaming/Code/User/keybindings.json

[   {   "key": "ctrl+down",

        "command": "workbench.action.output.toggleOutput",

        "when": "!terminalFocus"

    },

    {   "key": "ctrl+up",

        "command": "workbench.action.focusActiveEditorGroup",

        "when": "editorTextFocus || panelFocus"

    }

]

No comments:

Post a Comment