# Where to insert some commands before running REPL in VS Code?

**URL:** https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228
**Category:** VS Code
**Tags:** question
**Created:** [November 9, 2021, 10:34pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228 "2021-11-09T22:34:01Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)
#### Post date: [November 9, 2021, 10:34pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/1 "2021-11-09T22:34:01Z")

</div>

I am using julia as an extension in VS code. I usually write a script then click on the `julia: Execute Active file in REPL` to run it.  
However, I need sometimes to run the REPL with some startup commands such as with `julia --project --sysimage sysimage_plots.dylib`.  
I navigated to `julia extension settings` but I didnt know where to add the `julia --project --sysimage sysimage_plots.dylib` command?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [November 10, 2021, 8:20am UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/2 "2021-11-10T08:20:43Z")

</div>

You can use the `julia.additionalArgs` setting for that.

---

<div class="post-metadata">

### Author: ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)
#### Post date: [November 10, 2021, 2:07pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/3 "2021-11-10T14:07:00Z")

</div>

@pfitzseb Thank you!  
So, I can click on `Edit in setting.json`, right? what is the language that I can use in it? for example can I put directly `julia --project --sysimage sysimage_plots.dylib.`?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [November 10, 2021, 2:26pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/4 "2021-11-10T14:26:11Z")

</div>

That settings expects a JSON array, so you want something like

```julia
    "julia.additionalArgs": [
        "--depwarn=yes",
        "--project=."
    ],

```

---

<div class="post-metadata">

### Author: ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)
#### Post date: [November 10, 2021, 5:01pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/5 "2021-11-10T17:01:35Z")

</div>

@pfitzseb Thank you.  
So, next to which filed should I include my sysimage `sysimage_plots.dylib`?

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [November 10, 2021, 5:14pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/6 "2021-11-10T17:14:12Z")

</div>

`"-J/path/to/your/sysimg"`. Check out `julia --help` in a terminal for other options.

---

<div class="post-metadata">

### Author: ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)
#### Post date: [November 10, 2021, 5:17pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/7 "2021-11-10T17:17:24Z")

</div>

@pfitzseb I mean, can I do this in the below?

```julia
"julia.additionalArgs": [
"--sysimage= path/to/sysimage_plots.dylib"
        "--depwarn=yes",
        "--project=."
    ],

```

---

<div class="post-metadata">

### Author: ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)
#### Post date: [November 10, 2021, 5:48pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/8 "2021-11-10T17:48:18Z")

</div>

Yes, that’s why I made that suggestion.

---

<div class="post-metadata">

### Author: ![Amro](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Amro](https://discourse.julialang.org/u/Amro)
#### Post date: [November 10, 2021, 6:16pm UTC](https://discourse.julialang.org/t/where-to-insert-some-commands-before-running-repl-in-vs-code/71228/9 "2021-11-10T18:16:20Z")

</div>

> [@pfitzseb](#):
>
> “-J/path/to/your/sysimg”

@pfitzseb  
Excuse me, I didnt get it well.  
I know that `-J/path/to/your/sysimg` can be used in command window before starting julia. Can I use it also here?

> [@pfitzseb](#):
>
> That settings expects a JSON array, so you want something like
> 
> ```julia
> "julia.additionalArgs": [
> "--depwarn=yes",
> "--project=."
> ],
> 
> ```
