[Fixed] [Beta] Regression: rectangular selection keeps the current caret

Selecting a rectangular area in the code editor while holding the Alt key used to select a rectangular area and used to add one caret per row.

Now it still selects the rectangular area and adds one caret per row, but it also keeps the current caret.

Here the caret was after the set before I selected a rectangular area, and after the selection I have 3 carets:
image

Then, after typing XXX, I get the new text 3 times instead of two:
image

2 Likes

good point - moved to bug reports
we’ve added support for multiple cursors and the implementations are colliding.

we’ll adjust the keymap so that alt + shift will do rectangular selection
and alt (without shift) will do multiple cursors/selection
(This is the same behaviour as vscode)

2 Likes

This should now be fixed as above :arrow_up:

2 Likes

Now you can select a few expressions with Alt+mouse drags, then press ( and get all the expressions wrapped in (...).

One operation with the mouse to select them all, one click on the keyboard to wrap them all.

This is awesome, it might even save me almost half the time it takes me to write this!
Feeling good!

1 Like