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

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?

You can use the julia.additionalArgs setting for that.

1 Like

@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.?

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

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

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

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

1 Like

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

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

Yes, that’s why I made that suggestion.

@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?