-
Notifications
You must be signed in to change notification settings - Fork 31k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go to next line (move the caret one line down independent of word wrap) #116418
Comments
This can be done by using the
|
Possible to make this accessible in the "keyboard shortcuts" settings? |
AFAIK The rich keyboard shortcuts editor cannot currently edit the |
@mstenemo I think you brought up two issues:
Is there something missing? |
Thank you for the clarification Alexdima, the fact that It was closed as "more information needed" indicated that you still waited for information. Your solution does not give the desired result: I want eg ctrl+up to move to the beginning of the previous paragraph, but this would require two actions (which is not possible by default? So using an extension would be required? If this is the case, it should be possible for me to implement, but not ideal for new users. If so, I guess my remaining issue is if this command is important enough to motivate having its own setting in the keyboard shortcuts. I assume there is a good reason why your suggested solution is preferred (although not possible as mentioned in your second point) over adding a new command that is discoverable using the keyboard shortcut directly? For very uncommon command I could see a point in not having it available in the keyboard shortcuts by default, although this very common command is implemented almost universally with crtl+up/down (eg in Emacs to move between paragraphs as well as word wrap), and there are many users who would prefer this by default but not have to go through the processes of adding another completely different solution just to implement it. |
I don't think we have a built-in command which would do exactly what you describe: going to the beginning of the previous paragraph / the beginning of the next paragraph. We can leave this issue open to track this feature request. I haven't seen this command in other code editors. For example, lots of code editors use ctrl+up/down for scrolling the viewport without moving the cursor. We do have another variant that might be helpful if you leave a one line gap between paragraphs: e.g. here is what I personally bind to
So let's leave this issue open for tracking the feature request for a command that moves to the beginning of the previous/next line. |
I am requesting a command to move the caret to the beginning of next/previous line, and if shift is also held down (eg using ctrl+shift+up/down) it should select text from the caret to beginning/end of current line. The difference between using shift+home is that hitting ctrl+shift+up multiple times would add another line each time, while +home does not expanding selection.
Similar commands are implemented almost universally with crtl+up/down both in editors (eg in Sublime and Emacs to move between code blocks), and in other common programs (eg GitHub, Word, Gmail) to move/select text between paragraphs or on the same line when the line is affected by word wrap).
This is slightly different from the recently added prevBlankLine and nextBlankLine cursorMove command (Insiders' Build for v1.54) for moving between code blocks like in Sublime and Emacs.
The text was updated successfully, but these errors were encountered: