'VSCode terminal send same sequence like in iterm

I am using VSCode integrated terminal together with zsh and zsh-autosuggestions. Everything is working as expected except for autosuggest-execute command.

I am looking for a way to send '^[auto' sequence to VSCode terminal, none of my attempts according to vscode docs worked so far.

In Iterm2, I am successfully able to send sequence like this:

enter image description here

ZSH config

# .zshrc
bindkey '^[auto' autosuggest-execute

Unsuccessful attempts

  {
    "key": "cmd+e",
    "command": "workbench.action.terminal.sendSequence",
    "args": {
      "text": "\u001b^[auto"
    }
  }

Note: Works fine out of the box on Ubuntu 20.04, but not on MacOS Catalina (10.15.7 (19H15))



Solution 1:[1]

Found a solution at last

{
  "key": "cmd+e",
  "command": "workbench.action.terminal.sendSequence",
  "args": {
    "text": "\u001bauto"
  }
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 MartinT