Is there a shortcut for deleting a line in Jupyter's edit mode?

旧街凉风 提交于 2020-12-09 08:27:34

问题


In Jupyter's edit mode, is there a shortcut for deleting a line of text? Something like Ctrl + L in Visual Studio?


回答1:


Shift + Delete or Ctrl + D or both, depending on version.

Ctrl + D is listed under HelpKeyboard Shortcuts in the notebook menu, but Shift + Delete seems to work despite being undocumented.




回答2:


As for Jupyter notebook servion version 6.0.2 the command Ctrl + D works for me. This shortcut is listed in the shortcut documentation, that can be found under HelpKeyboard Shortcuts.

If you want to edit the shortcuts you can do this here: HelpEdit Keyboard Shortcuts



来源:https://stackoverflow.com/questions/49809696/is-there-a-shortcut-for-deleting-a-line-in-jupyters-edit-mode

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!