Multicursor selection in Jupyter without mouse
Question:
Well-known way to use multicursor selection in jupyter notebook is to press Alt and then use the mouse. However is there some way to do it without mouse? E.g. like Ctrl+Shift in Visual Studio.
Doing it with mouse is much more slower than it can be done with keyboard.
Answers:
If you like vi/vim keybindings, take a look at the excellent jupyter-vim-binding, which adds additional keyboard editing modes to Jupyter notebook, similar to Vim.
After installing this extension, as in Vim, you can perform multicursor selection (block selection) with Ctrl+v.
On GitHub, I found this. It is not precisely what you asked for, but speeds up my use of Jupyter considerably.
- Place cursor in the desired spot
- Hold Ctrl + Alt
- Hold your left mouse button and drag mouse over the lines where you want a cursor
This places the mouse cursor in the same column of each line. It works particularly well if you need a mouse cursor at the beginning of each line.
As hychou pointed out in the comments, for Mac you have to hold option and then drag your mouse.
Well-known way to use multicursor selection in jupyter notebook is to press Alt and then use the mouse. However is there some way to do it without mouse? E.g. like Ctrl+Shift in Visual Studio.
Doing it with mouse is much more slower than it can be done with keyboard.
If you like vi/vim keybindings, take a look at the excellent jupyter-vim-binding, which adds additional keyboard editing modes to Jupyter notebook, similar to Vim.
After installing this extension, as in Vim, you can perform multicursor selection (block selection) with Ctrl+v.
On GitHub, I found this. It is not precisely what you asked for, but speeds up my use of Jupyter considerably.
- Place cursor in the desired spot
- Hold Ctrl + Alt
- Hold your left mouse button and drag mouse over the lines where you want a cursor
This places the mouse cursor in the same column of each line. It works particularly well if you need a mouse cursor at the beginning of each line.
As hychou pointed out in the comments, for Mac you have to hold option and then drag your mouse.