# Julia startup options for VSCode

**URL:** <https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911>\
**Category:** General Usage\
**Tags:** vscode\
**Created:** [December 21, 2023, 3:04pm UTC](https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911 "2023-12-21T15:04:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [December 21, 2023, 3:04pm UTC](https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911/1 "2023-12-21T15:04:57Z")

</div>

Hi all,

I was wondering if there is a way to include julia startup options in VSCode. Specifically, I would like to enable deprecation warnings by default.

Thanks!

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [December 21, 2023, 3:12pm UTC](https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911/2 "2023-12-21T15:12:41Z")

</div>

In settings.json, I see a line `"julia.additionalArgs":[]`. I added `depwarn=true` inside the brackets. Is that correct?

**Edit**

Evidently not:

```julia
 f() = "f()"

g() = "g()"

@deprecate f() g()

julia> f()
"g()"

```

It should have printed the following:

```julia
julia> f()
┌ Warning: `f()` is deprecated, use `g()` instead.
│ caller = top-level scope at REPL[4]:1
└ @ Core REPL[4]:1
"g()"

```

---

<div class="post-metadata">

**Author:** ![Nathan\_Boyer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nathan_boyer/32/14825_2.png) [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Post date:** [December 22, 2023, 3:16pm UTC](https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911/3 "2023-12-22T15:16:24Z")

</div>

I don’t know the answer, but maybe try `--depwarn=true` with hyphens inside the brackets?  
[https://docs.julialang.org/en/v1/manual/command-line-interface/#command-line-interface](https://docs.julialang.org/en/v1/manual/command-line-interface/#command-line-interface)

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [December 22, 2023, 5:18pm UTC](https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911/4 "2023-12-22T17:18:59Z")

</div>

> [@Christopher\_Fisher](#):
>
> In settings.json, I see a line `"julia.additionalArgs":[]`. I added `depwarn=true` inside the brackets. Is that correct?

Yes, when you navigate (through the menus) to the extension settings of the Julia extension, “additional args” is actually the first option that is offered (at least for me?).

Here’s mine:

```JSON
    "julia.additionalArgs": [
        "--warn-overwrite=yes",
    ],

```

---

<div class="post-metadata">

**Author:** ![Christopher\_Fisher](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher_fisher/32/26132_2.png) [@Christopher\_Fisher](https://discourse.julialang.org/u/Christopher_Fisher)\
**Post date:** [December 22, 2023, 7:19pm UTC](https://discourse.julialang.org/t/julia-startup-options-for-vscode/107911/5 "2023-12-22T19:19:01Z")

</div>

Thank you everyone for your replies. It turns out that “–warn-overwrite=yes” is the correct input.
