When using pi in herdr from the VSCode terminal on WSL2 the shift+enter for a new line did not work.
Store the following in Ctrl+Shift+P > Preferences: Open Keyboard Shortcuts (JSON) and add the following in the array.
[
{
//...
},
{
"key": "shift+enter",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u001b[13;2u" },
"when": "terminalFocus"
}
][
{
//...
},
{
"key": "ctrl+alt+v",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u001b\u0016"
},
"when": "terminalFocus"
}
]