# Run without debugging in VS Code extension

**URL:** <https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025>\
**Category:** VS Code\
**Created:** [May 23, 2020, 3:30pm UTC](https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025 "2020-05-23T15:30:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [May 23, 2020, 3:30pm UTC](https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025/1 "2020-05-23T15:30:16Z")

</div>

Hi, I’ve started to try the excellent VS Code extension recently, but I have failed to find the way to run an entire file in the REPL, using the shortcuts or menu options.

In the [documentation pages](https://github.com/julia-vscode/julia-vscode/wiki/Keyboard-shortcuts) I read that this is done with `F5`. On other other hand, in the “Run” menu of VS Code, `F5` is labelled as “Start Debugging”, whereas `Ctrl + F5` is “Run Without Debugging”. But both actions open a new “Julia Debugger” terminal - the same as the big “Run and Debug” button.

---

<div class="post-metadata">

**Author:** ![martincornejo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/martincornejo/32/13436_2.png) [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Post date:** [May 23, 2020, 3:49pm UTC](https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025/2 "2020-05-23T15:49:12Z")

</div>

Press `Ctrl + Shift + P` on VS Code for the command menu and search for **Julia Execute File**. If you press enter then the command will be executed and the Julia file will be run.

You can also assign a key shortcut for the command: use again `Ctrl + Shift + P` and search for **Preferences: Open Keyboard Shortcuts** , then search again for **Julia Execute File**. I can’t remember what was originally assigned (or if any shortcut was assigned at all) but I set it to ` Ctrl + Shift + Enter` (borrowed from Atom+Juno).

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [May 23, 2020, 4:05pm UTC](https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025/3 "2020-05-23T16:05:02Z")

</div>

Thanks!

I guess then, that the documentation in the Github page is outdated. And that all the options of the menu “Run” are related to running in debug mode (such that “Run Without Debugging” is of no actual use)?

---

<div class="post-metadata">

**Author:** ![AndiMD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andimd/32/6531_2.png) [@AndiMD](https://discourse.julialang.org/u/AndiMD)\
**Post date:** [May 23, 2020, 9:45pm UTC](https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025/4 "2020-05-23T21:45:51Z")

</div>

I stumbled across the same issue here: ["Run without debugging" runs debugger · Issue #1069 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/issues/1069)

IIRC “Run without debugging” starts a new Julia instance, but in addition shows the debug controls which is kind of confusing. Plus, restarting Julia is not useful if you want to use Revise.jl for reduced package loading times.  
I wonder if the default keybinding F5-\>“Julia Execute File” would make more sense.

---

<div class="post-metadata">

**Author:** ![tchr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tchr/32/15138_2.png) [@tchr](https://discourse.julialang.org/u/tchr)\
**Post date:** [May 24, 2020, 3:05pm UTC](https://discourse.julialang.org/t/run-without-debugging-in-vs-code-extension/40025/5 "2020-05-24T15:05:48Z")

</div>

See also this issue for the specific point about picking a shortcut: [Find a new default keyboard shortcut for "Run File in REPL" · Issue #1070 · julia-vscode/julia-vscode · GitHub](https://github.com/julia-vscode/julia-vscode/issues/1070)
