Shift+Return to leave current code block (i.e. remove indentation on new line) #5023
AlexVSharp
started this conversation in
Editor
Replies: 1 comment
-
Note that there are already Ctrl + Enter and Ctrl + Shift + Enter shortcuts to go to the next/previous line without breaking in the middle of the line (even if your cursor is not at the end of the line). Shift + Enter doesn't do anything different from pressing Enter in 3.5 (and it doesn't do anything in 4.0.alpha), so the proposed behavior sounds good. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A simple quality of life suggestion. Someone asked about this a long time ago.
By default, the editor adds indentation (as required) once we press Return. This speeds up writing blocks of code.
However, to leave the current block, right now we always have to manually backspace after entering the new line.
I propose introducing a Shift+Return shortcut to do this automatically. i.e. Enter a new line with one (or more?) less indentation.
'Tis always one less key pressed. 👍
Beta Was this translation helpful? Give feedback.
All reactions