如何解决我的 keybindings.json 对 VSCode
我正在尝试将默认行为从“ctrl + d”更改为“editor.action.copyLinesDownAction”。 我在 keybindings.json 中添加了所需的设置:
{
"key": "ctrl+d","command": "editor.action.copyLinesDownAction",}
但仍然执行“ctrl + d”的默认行为(“将选择添加到下一个查找匹配”) 我的 keybindingService-Log 看起来不错:
Received keydown event - modifiers: [ctrl],code: ControlLeft,keyCode: 17,key: Control
Converted keydown event - modifiers: [ctrl],keyCode: 5 ('Ctrl')
Keyboard event cannot be dispatched in keydown phase.
Received keydown event - modifiers: [ctrl],code: KeyD,keyCode: 68,key: d
Converted keydown event - modifiers: [ctrl],keyCode: 34 ('D')
Resolving ctrl+D
From 1 keybinding entries,matched editor.action.copyLinesDownAction,when: no when condition,source: user.
Storing single modifier for possible chord ctrl.
Clearing single modifier due to 300ms elapsed.
我错过了什么?
编辑:提供完整日志
编辑:我做了更多测试,我的 keybindings.json 似乎根本没有效果。我正在为 VSCode 使用 Jupyter Notebooks。也许有什么东西可以覆盖它?
解决方法
好像 VSCode 只托管了一个 Jupyter 实例,不能改变里面的键绑定。所以没有办法在 VSCode 中编辑 Jupyter Notebooks 的键绑定
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。