# Setting Number of Threads in VScode

**URL:** <https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [June 23, 2021, 7:24pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460 "2021-06-23T19:24:40Z")\
**Posts on this page:** 5\
**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:** [June 23, 2021, 7:24pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460/1 "2021-06-23T19:24:40Z")

</div>

Hello,  
I’ve set the number of threads to be 12 in Julia extension in VScode. However, when I check it in Julia REPL it shows 1. Any recommendation to solve it?

 ![333](https://global.discourse-cdn.com/julialang/original/3X/4/d/4dd9281266b579aaebefcb17a08ecbdc44156932.png)

Thanks!

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [June 23, 2021, 7:31pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460/2 "2021-06-23T19:31:46Z")

</div>

You start a separate julia from powershell. This Julia doesn’t know about the VS Julia settings.

Start Julia with  
View → Command Palette → Julia: Start REPL

---

<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:** [June 23, 2021, 7:38pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460/3 "2021-06-23T19:38:16Z")

</div>

Thanks, yes I followed your way and it works. So, there is no way to start Julia form powershell and let it know about VS Julia settings?

---

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [June 23, 2021, 7:44pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460/4 "2021-06-23T19:44:51Z")

</div>

I don’t think so, but you can run Julia from the powershell with

```julia
julia -t 12

```

for 12 threads.  
see [Command-line Options · The Julia Language](https://docs.julialang.org/en/v1/manual/command-line-options/#command-line-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:** [June 23, 2021, 7:46pm UTC](https://discourse.julialang.org/t/setting-number-of-threads-in-vscode/63460/5 "2021-06-23T19:46:45Z")

</div>

Thank you very much!
