# VS Code Run configurations

**URL:** <https://discourse.julialang.org/t/vs-code-run-configurations/38103>\
**Category:** VS Code\
**Created:** [April 23, 2020, 8:29pm UTC](https://discourse.julialang.org/t/vs-code-run-configurations/38103 "2020-04-23T20:29:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [April 23, 2020, 8:29pm UTC](https://discourse.julialang.org/t/vs-code-run-configurations/38103/1 "2020-04-23T20:29:13Z")

</div>

In VS Code, I see how to setup a run configuration in the launch.json for debugging. Something like

```julia
        {
            "type": "julia",
            "request": "launch",
            "name": "Run active Julia file",
            "program": "${file}",
            "stopOnEntry": false,
            "cwd": "${workspaceFolder}",
            "juliaEnv": "${command:activeJuliaEnvironment}"
        }

```

Is it possible to set up a launch configuration to just run a julia script (_not_ in debugging mode)?

---

<div class="post-metadata">

**Author:** ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Post date:** [April 24, 2020, 10:25am UTC](https://discourse.julialang.org/t/vs-code-run-configurations/38103/2 "2020-04-24T10:25:40Z")

</div>

Ctrl+F5 should run that launch config without the debugger.

---

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [April 24, 2020, 1:08pm UTC](https://discourse.julialang.org/t/vs-code-run-configurations/38103/3 "2020-04-24T13:08:38Z")

</div>

Thank you @davidanthoff, worked for me!

---

<div class="post-metadata">

**Author:** ![ianfiske](https://avatars.discourse-cdn.com/v4/letter/i/58f4c7/32.png) [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Post date:** [April 24, 2020, 1:21pm UTC](https://discourse.julialang.org/t/vs-code-run-configurations/38103/4 "2020-04-24T13:21:44Z")

</div>

That works for running, currently active script. however, can we create a run config that will run a specific script (non-active) like

```julia
        {
            "type": "julia",
            "request": "launch",
            "name": "Launch example 2",
            "program": "${workspaceFolder}/examples/example2.jl",
            "stopOnEntry": false
        },

```

in non-debug mode? Can we click on the run config dropdown, select the run config and hit go without having to navigate to that file in the browser first (in non-debug mode)?

edit: nevermind! I see that Ctrl+F5 runs the selected run config in normal mode, which includes the “specific-file” version above. Cool!
