zed icon indicating copy to clipboard operation
zed copied to clipboard

Move the cursor up one line and create a new line there to write code.

Open NguyenHoangHieu22GIT2 opened this issue 1 year ago • 2 comments

Check for existing issues

  • [X] Completed

Describe the feature

This is a really small feature, but I think it should be there on the first place, in VSCode when you use Ctrl+shift+Enter, the cursor will move up one line above and create a new line there, really convenient.

but in Zed, It still goes down though, this makes me have to go up 1 line by using mouse or an arrow which is a little annoying, maybe there's a workaround for this that I am not aware of, but I hope you guys can create this little feature :) thanks for reading.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

NguyenHoangHieu22GIT2 avatar Jul 12 '24 03:07 NguyenHoangHieu22GIT2

In VSCode this is called "Insert Line Above" and is bound to cmd-shift-enter on MacOS ctrl-shift-enter on Linux/Windows.

Related (but distinct):

  • https://github.com/zed-industries/zed/issues/9891

notpeter avatar Jul 13 '24 05:07 notpeter

I wouldn't say it's small. I've been using Zed exclusively for Rust on macOS, but I can't use it on Linux because every time I hit this shortcut I completely lose my train of thought. lol

archer884 avatar Aug 20 '24 19:08 archer884