How to launch Julia with command-line arguments in VS Code?

I usually start Julia with some command-line options when starting it from a terminal. How to do this when using the Julia REPL in the Code editor?

You can specify them as a JSON list in your Settings.json file under the julia.additionalArgs setting. e.g.

    "julia.additionalArgs": [

Or, start a terminal, and in the terminal one can start Julia in any way the heart desires.

1 Like

That Julia instance will not have any of the integrations, though. Things like workspace, plot pane, debugger, code execution all will not work with that. Essentially the Julia extension won’t know about that Julia instance and just ignore it.


Though you can of course connect it to VS Code with the “Julia: Connect external REPL” command.

1 Like