问题
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 Help → Keyboard 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 Help → Keyboard Shortcuts.
If you want to edit the shortcuts you can do this here: Help → Edit Keyboard Shortcuts
来源:https://stackoverflow.com/questions/49809696/is-there-a-shortcut-for-deleting-a-line-in-jupyters-edit-mode