# JULIA\_NUM\_THREADS in VS Code (Windows 10 + WSL)

**URL:** <https://discourse.julialang.org/t/julia-num-threads-in-vs-code-windows-10-wsl/28794>\
**Category:** VS Code\
**Tags:** multithreading\
**Created:** [September 15, 2019, 3:38pm UTC](https://discourse.julialang.org/t/julia-num-threads-in-vs-code-windows-10-wsl/28794 "2019-09-15T15:38:34Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![Philogicatician](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/philogicatician/32/34172_2.png) [@Philogicatician](https://discourse.julialang.org/u/Philogicatician)\
**Post date:** [March 24, 2022, 1:36am UTC](https://discourse.julialang.org/t/julia-num-threads-in-vs-code-windows-10-wsl/28794/13 "2022-03-24T01:36:51Z")

</div>

Just to answer this for anyone that finds this thread, I was using 1.7.2 Julia and the VSCode Julia extension v.1.6.6, and the nice box to change the number of threads wasn’t there. Instead there was a “Edit in settings.json” link.

I could change the threads in the terminal instance of Julia but it wouldn’t register in my Jupyter notebooks within VS Code. Eventually, I figured out the solution.

Here’s what I added to the `settings.json` file:

```julia
"julia.NumThreads": 12,
    "settingsSync.ignoredSettings": [
        "-julia.NumThreads"
    ],

```

Altogether, the `settings.json` file should look something like the following:

```julia
{
    # Probably has some settings for 
    # color schemes, zoomlevel, etc.

    # Then you should add these lines:
    "julia.NumThreads": 12,
    "settingsSync.ignoredSettings": [
        "-julia.NumThreads"
    ],
    
    
}

```

---

_[View the full topic](https://discourse.julialang.org/t/julia-num-threads-in-vs-code-windows-10-wsl/28794)._
