# Custom keybindings doesn't work in VS Code REPL

**URL:** https://discourse.julialang.org/t/custom-keybindings-doesnt-work-in-vs-code-repl/84636
**Category:** VS Code
**Created:** [July 22, 2022, 2:19pm UTC](https://discourse.julialang.org/t/custom-keybindings-doesnt-work-in-vs-code-repl/84636 "2022-07-22T14:19:04Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wsshin](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/wsshin/32/360_2.png) [@wsshin](https://discourse.julialang.org/u/wsshin)
#### Post date: [July 22, 2022, 2:19pm UTC](https://discourse.julialang.org/t/custom-keybindings-doesnt-work-in-vs-code-repl/84636/1 "2022-07-22T14:19:04Z")

</div>

I use Greek characters very frequently in my code. So, for example, instead of entering λ by `\lambda` followed by the tab key, I press Control-Option-L. (I’m a Mac user, and Mac’s Option key would correspond to Window’s Alt key.)

I define these key bindings in `keybindings.json`, and they work great in the VS Code editor. However, such defined keybindings do not work in the REPL integrated in VS Code. This makes testing scripts very inconvenient. The scripts defines lots of variables in Greek characters, and when I want to assign different values to them in REPL, I need to type them by `\lambda` followed by the tab key, which is much slower than typing the key binding.

Has anyone experienced the same issue? Is there a way to make the keybindings defined in `keybindings.json` work in both the main editor and REPL in VS Code?

---

<div class="post-metadata">

### Author: ![piechologist](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piechologist/32/27662_2.png) [@piechologist](https://discourse.julialang.org/u/piechologist)
#### Post date: [July 22, 2022, 3:18pm UTC](https://discourse.julialang.org/t/custom-keybindings-doesnt-work-in-vs-code-repl/84636/2 "2022-07-22T15:18:53Z")

</div>

You could define an additional binding that sends unicode characters to the terminal, e.g.:

```julia
    {
        "key": "cmd+backspace",
        "command": "workbench.action.terminal.sendSequence",
        "when": "terminalFocus",
        "args": {"text":"\u0015"} // ^u
    },

```

Then, the binding for the editor should have the _when clause_ `"when": "!terminalFocus"`.

I know this is a bit awkward because you need to define everything twice…
