DEV Community

Tao Liu
Tao Liu

Posted on

How to open keybindings.json in VSCode

You can also open the keybindings.json file from the Command Palette (Ctrl+Shift+P) with the Preferences: Open Keyboard Shortcuts (JSON) command.

Here's my file for toggling the console:

// Place your key bindings in this file to override the defaults
[
{
"key": "shift+space",
"command": "workbench.action.toggleMaximizedPanel",
// "command": "workbench.action.toggleEditorVisibility" either one
"when": "!terminalFocus"
},
]

Source: https://stackoverflow.com/questions/48511956/toggle-between-fullscreen-editor-and-terminal-in-vs-code#:~:text=There%20are%20two%20commands%20that,action.

Top comments (0)