Shift+Enter: Add new line after current line, jump to it
DamianFekete opened this issue · comments
Hi Denis,
If not too much trouble, it would be nice if Shift+Enter
would not break the current line (as Enter
does), and it would instead jump to the end of line and only then add the new line.
Some|{Shift+Enter} text
Another line
==>
Some text
|
Another line
Thank you for the playground.
@DamianFekete what is the current behavior for VS Code?
@x1unix, this would be the default behavior in the editor:
{ "key": "shift+enter", "command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly" },
and for completeness:
{ "key": "ctrl+shift+enter", "command": "editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly" },
@DamianFekete the mentioned behavior bound to Ctrl|Command+Enter
on stock VS Code.
This behavior conflicts with our hotkey that used for quick build/run. I suggest something like Shift+Enter
for editor.action.insertLineAfter
.
Is it ok for you?
@x1unix, yes, Shift+Enter
is what I would like.
I though that Shift+Enter
was the default in VS Code,
but it may not be (source seems to be Extension, although above I see "default keybinding"):
I'm not really a VS Code user.
@DamianFekete see: #158