【问题标题】:Add custom keyboard shortcuts to VS Code Jupyter extension向 VS Code Jupyter 扩展添加自定义键盘快捷键
【发布时间】:2021-05-01 11:23:22
【问题描述】:

有没有办法为VS Code Jupyter 扩展添加自定义键盘快捷键?

为了给你一些背景信息,我想将 CopyLinewsDownActionAlt+Shift+Down 更改为 Ctrl+Shift+d

我能够更改大多数编辑器的键绑定

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

但这不会改变笔记本中的快捷方式。

我也尝试更改键绑定

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

但没有成功。

【问题讨论】:

    标签: visual-studio-code jupyter-notebook jupyter keyboard-shortcuts


    【解决方案1】:

    仅在预览本机笔记本界面中支持 VS Code Jupyter 笔记本的自定义键盘快捷键。如果您有兴趣尝试一下,请按照以下说明操作:https://devblogs.microsoft.com/python/notebooks-are-getting-revamped/#how-to-try-out-native-notebooks

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-08-28
      • 2017-08-28
      • 1970-01-01
      • 1970-01-01
      • 2022-01-04
      • 2020-01-04
      • 2023-04-02
      相关资源
      最近更新 更多