jdsteinbach / vscode-custom-presentation-mode

VSCode
2 stars 0 forks source link

Extension overwrites default keyboard shortcut #3

Open 5nafu opened 5 years ago

5nafu commented 5 years ago

The keyboard shortcut "Ctrl+Shift+p" used by this extension will overwrite the default shortcut to show all commands (workbench.action.showcommands) .

fredrikaverpil commented 3 years ago

This can be overridden if you add the following to your keybindings.json:

[{
    "key": "ctrl+shift+p",
    "command": "workbench.action.showCommands",
    "when": "editorTextFocus"
},
{
    "key": "ctrl+shift+alt+p",
    "command": "extension.customPresentationMode",
    "when": "editorTextFocus"
}]

Run the palette command Preferences: Open default keyboard shortcuts (JSON) to view all shortcuts so you don't pick one which is already in use.