Skip to content

Instantly share code, notes, and snippets.

@ai2ys
Last active August 5, 2026 16:18
Show Gist options
  • Select an option

  • Save ai2ys/b3d0f818c63fbd3e09263d3f52663b21 to your computer and use it in GitHub Desktop.

Select an option

Save ai2ys/b3d0f818c63fbd3e09263d3f52663b21 to your computer and use it in GitHub Desktop.
Issues - Pi, herdr, VSCode

New Line Issue - Pi, herdr, VSCode

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"
  }
]

Screenshot paste issue

[
  {
    //...
  },
  {
      "key": "ctrl+alt+v",
      "command": "workbench.action.terminal.sendSequence",
      "args": {
          "text": "\u001b\u0016"
      },
      "when": "terminalFocus"
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment