Adding the following setting to Preference -> Keyboard Shortcuts in VS code
[
{
"key": "home",
"command": "workbench.action.terminal.sendSequence",
"args": { "text": "\u0001" }, // move cursor to end of line, bash at least
"when": "terminalFocus"
},
{