<ALT+H> 热键不适用于 Visual Studio Code

Posted

技术标签:

【中文标题】<ALT+H> 热键不适用于 Visual Studio Code【英文标题】:<ALT+H> hotkey doesn't work with Visual Studio Code 【发布时间】:2021-10-24 11:01:33 【问题描述】:

我无法将命令 "cursorLeft" 绑定到 "alt+h" 。这是我的设置文件keybindings.json

[     "key": "alt+h",                  "command": "cursorLeft",
        "when": "textInputFocus" ,
     "key": "alt+l",                  "command": "cursorRight",
        "when": "textInputFocus" ,
     "key": "alt+k",                  "command": "cursorUp",
        "when": "textInputFocus" ,
     "key": "alt+j",                  "command": "cursorDown",
        "when": "textInputFocus"
    ]

其他三个热键正常工作。如果我将热键 &lt;alt+h&gt; 更改为任何其他组合,它也可以。我的操作系统是Kali Linux。它也不适用于 Windows。我已经检查过了。有什么我可能错过的吗?

【问题讨论】:

【参考方案1】:

最后,我找到了解决方案。我不知道为什么,但是如果我们用"alt+H" 替换"alt+h",它会起作用。 但是,最终的结果还不够好。有各种副作用和冻结。我想我需要另一个密钥而不是 alt

【讨论】:

以上是关于<ALT+H> 热键不适用于 Visual Studio Code的主要内容,如果未能解决你的问题,请参考以下文章

qt 注册热键

qt 注册热键

WPF:按 ALT 键时,按钮上的热键不显示下划线

<h:commandLink> 不适用于嵌套 <f:view> 标记,但 <h:outputLink> 正在工作

vc++ 怎么给button设置热键

为啥我的代码不适用于较旧的访问驱动程序?