visual-studio-code - 如何在 VSCode 中制作仅由修饰符组成的键绑定?
问题描述
如何制作仅由修饰符组成的键绑定?例子:
{
"key": "shift+alt",
"command": "cursorLeft",
"when": "editorTextFocus"
}
解决方案
执行此操作的一些功能出现在 Insiders' Build v1.54 中,请参阅 Feature: Shift Shift, Ctrl Ctrl, Alt Alt Keybinds (Double press modifier keybind support) 。
但是,它仅限于:
Shift Shift
Ctrl Ctrl
Alt Alt
Meta Meta
Win Win
所以"key": "shift alt"
不起作用。
所以你可以做
{
"key": "shift shift",
"command": "cursorLeft",
"when": "editorTextFocus"
}
注意:+
修饰键之间没有,所以
"key": "shift+shift",
目前不工作 - 测试。
推荐阅读
- r - 具有变量名称与列号的 data.frames 子集
- c++ - 当我尝试将新指针分配给结构时出现堆栈溢出错误
- azure-active-directory - AAD 增加 O365 组创建的配额
- javascript - 是什么导致我出现“gulpSass.compiler.render 不是函数”错误?
- jquery - Magento2 产品视图页面给出 Uncaught TypeError: settings.$elementF.fotorama is not a function in gallery.js:297
- webgl - 浏览器中的 webassembly gl 画布可以使用透明背景吗?
- tensorflow - 无法通过计算和应用梯度来训练模型
- java - 如何使用 jpos 解析给定的行?
- intellij-idea - 如何使用 intellij 中的远程服务器方便地测试我的程序
- javascript - 如何防止桌面网站上的图像在移动设备上加载?