2021年5月2日星期日

Add custom keyboard shortcuts to VS Code Jupyter extension

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.

https://stackoverflow.com/questions/67345702/add-custom-keyboard-shortcuts-to-vs-code-jupyter-extension May 01, 2021 at 07:23PM

没有评论:

发表评论