Add custom keyboard shortcuts to VS Code Jupyter extension

Viewed 763

Is there a way to add custom keyboard shortcuts to the VS Code Jupyter extension?

To give you some context, I wanted to change the CopyLinewsDownAction from Alt+Shift+Down to Ctrl+Shift+d

I was able to change the keybinding for most of the editors with

{
  "key": "ctrl+shift+d",
  "command": "editor.action.copyLinesDownAction",
  "when": "editorTextFocus && !editorReadonly"
}

but this does not change the shortcut in the notebooks.

I tried also to change the keybinding

{
  "key": "shift+alt+down",
  "command": "notebook.cell.copyDown",
  "when": "notebookEditorFocused && !inputFocus"
}

but without success.

1 Answers
Related