我的 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 的键绑定