当我运行键盘快捷键“ctrl+shift+P”时,VSCode 不会打开命令面板

问题描述 投票:0回答:1

我有 Windows 11 和 vscode。当我想打开命令面板时,我通常按“ctrl_left+shift+p”,它就会打开。但是,对于我目前使用的计算机来说,情况并非如此。

我知道,发生这种情况可能是因为另一个程序链接了这个快捷方式,并且在我的 vscode 之前具有更高的优先级。我尝试关闭所有似乎正在运行的程序,但无法解决任何问题。我推断这是因为快捷键“ctrl_right+shift+p”确实打开了命令面板。

我已经查看了“keybindings.json”文件,但无法找到任何内容,因为一切似乎都是正确的。

此外,我还运行了“开发人员:切换键盘快捷键故障排除”功能,这是启动键盘快捷键时生成的日志:

2023-03-27 22:11:19.310 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 17, key: Control
2023-03-27 22:11:19.310 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl], code: ControlLeft, keyCode: 5 ('Ctrl')
2023-03-27 22:11:19.311 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2023-03-27 22:11:19.486 [info] [KeybindingService]: / Received  keydown event - modifiers: [ctrl,shift], code: ShiftLeft, keyCode: 16, key: Shift
2023-03-27 22:11:19.486 [info] [KeybindingService]: | Converted keydown event - modifiers: [ctrl,shift], code: ShiftLeft, keyCode: 4 ('Shift')
2023-03-27 22:11:19.486 [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
2023-03-27 22:11:19.686 [info] [KeybindingService]: + Ignoring single modifier ctrl due to it being pressed together with other keys.
visual-studio-code keyboard-shortcuts shortcut vscode-keybinding
1个回答
0
投票

我今天在 Mac 上也遇到了这个问题,对我有帮助的是使用该网站 defkey 查看哪个应用程序使用哪个快捷方式,在那里我发现我的待办事项应用程序也使用了该快捷方式。

也许您认识一个使用该组合的程序。 https://defkey.com/what-means/ctrl-shift-p

另一种方法有点顽固,但那就是打开 VScode,然后在任务管理器中终止进程,直到在 VScode 中打开快捷方式。

© www.soinside.com 2019 - 2024. All rights reserved.