Notebook: Keyboard shortcut for multiline cursor

Created on 12 Jul 2019  路  9Comments  路  Source: jupyter/notebook

Multiline editing is currently possible by holding Alt and dragging the mouse to create a multiline cursor. I find this slow and imprecise. Could we also please have a keyboard shortcut to do this? For example, Sublime Text 3 uses Shift+Alt+(up or down arrows). I don't know what's possible with a browser based notebook though.

This is mentioned in a comment on issue #2527 but not responded to.

Most helpful comment

If you need a multiline cursor for 20 lines, clicking to set up precise locations takes longer than not using the multiline cursor at all. Would it be possible to have a keyboard shortcut for it?

All 9 comments

Has any work been done on this?

Why there is no shortcut for this?

bump

That would be incredibly useful!

2527 its CMD+Click on macOS.

comment was for a keyboard shortcut, not a mouse shortcut

Has there been any progress on this?

If you need a multiline cursor for 20 lines, clicking to set up precise locations takes longer than not using the multiline cursor at all. Would it be possible to have a keyboard shortcut for it?

Bumping this, it's a must-have feature in my opinion. Pressing Alt + up/down arrow to multiline edit is something I'm always lacking when writing code in Jupyter notebooks.
As a developer I often find myself using Google Colab for smaller tasks just because of their awesome code editor and auto-completion.
I feel that the two features that vanilla notebooks are missing right now are developer-level key bindings like the one proposed here, and an IntelliSense-like autocompletion similar to the ones in VS Code and Colab.

Was this page helpful?
0 / 5 - 0 ratings