Multi-line edit support #6524
-
Hi, I'm looking to find the keymap to add multiple cursors so that I can do a multi-line edit. In my other IDE I have a keycombo with the down arrow key that adds a cursor to the next line for as many lines as I need then I just start moving the cursor around and they all move and edit together on multiple lines like this: Does it exist in Zed? Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Yes! Use alt-cmd-[up/down] to copy your cursor up or down :) you can also |
Beta Was this translation helpful? Give feedback.
-
Yasss! Thanks, that was fast :) |
Beta Was this translation helpful? Give feedback.
-
I don't see it in the default bindings https://zed.dev/ref/default.json |
Beta Was this translation helpful? Give feedback.
-
The vis editor combines multiple cursors with sam's regular expressions. I really like this feature where you are able to do a regex search for selections, a range with an anchor, from which you are able to edit text. |
Beta Was this translation helpful? Give feedback.
-
This was one of the first things I looked for when Cmd+click didn't work and couldn't find it in the docs or default bindings. Can this be exposed for remapping? |
Beta Was this translation helpful? Give feedback.
Yes! Use alt-cmd-[up/down] to copy your cursor up or down :) you can also
alt-click
to place a multi-cursor in a specific spot.