# Vscode 'send to active terminal' for persistence and access to scheduler-controlled HPC nodes?

**URL:** https://discourse.julialang.org/t/vscode-send-to-active-terminal-for-persistence-and-access-to-scheduler-controlled-hpc-nodes/65132
**Category:** VS Code
**Tags:** question, hpc, repl, vscode
**Created:** [July 22, 2021, 6:45pm UTC](https://discourse.julialang.org/t/vscode-send-to-active-terminal-for-persistence-and-access-to-scheduler-controlled-hpc-nodes/65132 "2021-07-22T18:45:45Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![mkarikom](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkarikom/32/7096_2.png) [@mkarikom](https://discourse.julialang.org/u/mkarikom)
#### Post date: [July 28, 2021, 4:18pm UTC](https://discourse.julialang.org/t/vscode-send-to-active-terminal-for-persistence-and-access-to-scheduler-controlled-hpc-nodes/65132/4 "2021-07-28T16:18:25Z")

</div>

Turns this functionality I was asking for [is already natively supported in vscode](https://github.com/julia-vscode/julia-vscode/issues/764#issuecomment-503662927), as noted by @tshort in a related julia-vscode feature request.

So all that is needed is to retrieve the json id from the palette command above, and add it to `~/.config/Code/User/keybindings.json`:

```julia
     {
        "key": "ctrl+enter",
        "command": "workbench.action.terminal.runSelectedText",
        "when": "editorTextFocus && editorLangId == 'juliamarkdown'"
    },
    {
        "key": "ctrl+enter",
        "command": "workbench.action.terminal.runSelectedText",
        "when": "editorTextFocus && editorLangId == 'julia'"
    }

```

I’ve just confirmed this works within a slurm interactive session on a compute node as in (2) above.

---

_[View the full topic](https://discourse.julialang.org/t/vscode-send-to-active-terminal-for-persistence-and-access-to-scheduler-controlled-hpc-nodes/65132)._
