Tom*_*ett 46 visual-studio-code jupyter-notebook
我有一个奇怪的问题。当我编辑 Jupyter Notebook 一段时间时,箭头键会突然停止对特定单元格起作用。但是,CTRL-箭头键和所有其他键将继续工作。此外,其他细胞不受影响。
一种繁琐的解决方法是创建一个新单元格并复制并粘贴受影响单元格的内容。如您所见,这非常不方便。
我感觉 VS Code 进入了某种奇怪的状态,但我不知道如何摆脱它。如果有人知道如何从中恢复,我将不胜感激。
来自https://github.com/microsoft/vscode-jupyter/issues/13263的建议解决了我的问题,只需将以下内容添加到键盘快捷键 json 中:
{ "key": "down", "command": "-editor.action.scrollDownHover", "when": "editorHoverFocused" },
{ "key": "left", "command": "-editor.action.scrollLeftHover", "when": "editorHoverFocused" },
{ "key": "right", "command": "-editor.action.scrollRightHover", "when": "editorHoverFocused" },
{ "key": "up", "command": "-editor.action.scrollUpHover", "when": "editorHoverFocused" },
{ "key": "home", "command": "-editor.action.goToTopHover", "when": "editorHoverFocused" },
{ "key": "end", "command": "-editor.action.goToBottomHover", "when": "editorHoverFocused" },
Run Code Online (Sandbox Code Playgroud)
小智 3
我在这里找到了答案: https://github.com/microsoft/vscode-jupyter/issues/13263#issuecomment-1495291228。我发现一个扩展(Kite)显示错误(在“输出”窗口中)。我禁用了 Kite,到目前为止一切对我来说都很好,问题还没有再次出现。当然,如果您确实需要一个出现此类错误的扩展,那么您显然需要纠正问题,而不仅仅是禁用该扩展。
| 归档时间: |
|
| 查看次数: |
17200 次 |
| 最近记录: |