# VS Code

**URL:** https://discourse.julialang.org/c/tools/vscode/42.md?page=4

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 5

---

## [New stable features for the test item framework](https://discourse.julialang.org/t/new-stable-features-for-the-test-item-framework/118512)

<div class="topic-metadata">

**Author:** [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)\
**Replies:** 18\
**Last updated:** [August 25, 2024, 9:36pm UTC](https://discourse.julialang.org/t/new-stable-features-for-the-test-item-framework/118512 "2024-08-25T21:36:56Z")

</div>

I released a couple of new stable features for the test item framework in the last weeks. This post will describe them. But before I dive into the new features, a quick recap what the test item framework is! The main be…

---

## [Why my VSCode extension is not in the latest version?](https://discourse.julialang.org/t/why-my-vscode-extension-is-not-in-the-latest-version/118564)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 2\
**Last updated:** [August 25, 2024, 12:11am UTC](https://discourse.julialang.org/t/why-my-vscode-extension-is-not-in-the-latest-version/118564 "2024-08-25T00:11:19Z")

</div>

I am on Julia v1.10.4 but the VSCode extension version is v1.79.2. I know other people already have version \>v1.100, and that is not pre-release. I sync my VSCode across two devices, one with Linux and another with Wind…

---

## [Using environment variables to moderate GC. julia version 1.10.4 with prerelease version](https://discourse.julialang.org/t/using-environment-variables-to-moderate-gc-julia-version-1-10-4-with-prerelease-version/118483)

<div class="topic-metadata">

**Author:** [@hapopo](https://discourse.julialang.org/u/hapopo)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 4:50pm UTC](https://discourse.julialang.org/t/using-environment-variables-to-moderate-gc-julia-version-1-10-4-with-prerelease-version/118483 "2024-08-22T16:50:55Z")

</div>

Hello, i am new to julia and using it for numerical simulations. i use a very RAM heavy code that generates multiple dictionaries with a lot of entries. I use Threads.@threads in this code using 60 workers (i have 64 log…

---

## [VSCode linter warning "A non-DataType has been used in a type declaration statement."](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482)

<div class="topic-metadata">

**Author:** [@jishnub](https://discourse.julialang.org/u/jishnub)\
**Replies:** 1\
**Last updated:** [August 22, 2024, 12:35pm UTC](https://discourse.julialang.org/t/vscode-linter-warning-a-non-datatype-has-been-used-in-a-type-declaration-statement/118482 "2024-08-22T12:35:06Z")

</div>

Why does the VSCode extension highlight such cases as “A non-DataType has been used in a type declaration statement.”, when this is a valid type declaration? I understand that this may be disabled, but what is the purp…

---

## [Setting environment variable in VS Code debugger](https://discourse.julialang.org/t/setting-environment-variable-in-vs-code-debugger/97864)

<div class="topic-metadata">

**Author:** [@Yue-Zhengyuan](https://discourse.julialang.org/u/Yue-Zhengyuan)\
**Replies:** 12\
**Last updated:** [August 21, 2024, 6:14pm UTC](https://discourse.julialang.org/t/setting-environment-variable-in-vs-code-debugger/97864 "2024-08-21T18:14:01Z")

</div>

How to set environment variables in VS Code debugger in launch.json for Julia? For Python, the env var can be set by the “env” property: { "version": "0.2.0", "configurations": \[ { "name": "P…

---

## [Jld2 preview in vscode?](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050)

<div class="topic-metadata">

**Author:** [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)\
**Replies:** 9\
**Last updated:** [August 21, 2024, 4:43pm UTC](https://discourse.julialang.org/t/jld2-preview-in-vscode/80050 "2024-08-21T16:43:18Z")

</div>

I use JLD2.jl to store simulation results which I find pretty convenient. I wonder if there is a plan to add a preview/explorer feature for this type of file in vscode. Json files are nicer for a having a quick look on…

---

## [@run fib(5) makes Julia to crash in Julia 1.11 rc2](https://discourse.julialang.org/t/run-fib-5-makes-julia-to-crash-in-julia-1-11-rc2/118329)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [August 18, 2024, 11:41am UTC](https://discourse.julialang.org/t/run-fib-5-makes-julia-to-crash-in-julia-1-11-rc2/118329 "2024-08-18T11:41:19Z")

</div>

Making debug of this in VSCode Julia extension / Julia v1.11 RC2 makes Julia to crash. It works fine in Julia 1.10 or if breakpoints are used. function fib(n) if n == 0 return 0 end if n == 1 return 1 end re…

---

## [VSCode taking a very long time to format saved file](https://discourse.julialang.org/t/vscode-taking-a-very-long-time-to-format-saved-file/92531)

<div class="topic-metadata">

**Author:** [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Replies:** 4\
**Last updated:** [August 11, 2024, 2:50am UTC](https://discourse.julialang.org/t/vscode-taking-a-very-long-time-to-format-saved-file/92531 "2024-08-11T02:50:11Z")

</div>

I have VSCode set to automatically format .jl files on save, and also to save files whenever focus changes. Most of the time this works brilliantly, formatting my files in a flash. But occasionally formatting a file wil…

---

## [Linting wrong but not sure what caused it](https://discourse.julialang.org/t/linting-wrong-but-not-sure-what-caused-it/117770)

<div class="topic-metadata">

**Author:** [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Replies:** 0\
**Last updated:** [August 2, 2024, 5:37pm UTC](https://discourse.julialang.org/t/linting-wrong-but-not-sure-what-caused-it/117770 "2024-08-02T17:37:19Z")

</div>

I have two systems running the same version of the VS Code but different linting: Is anyone experiencing the same issue or has hints on debugging it? Seems to be related to the parsing for the frontmatter. Update…

---

## [Julia Extension Stuck "Formatting..."](https://discourse.julialang.org/t/julia-extension-stuck-formatting/117744)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 0\
**Last updated:** [August 1, 2024, 8:39pm UTC](https://discourse.julialang.org/t/julia-extension-stuck-formatting/117744 "2024-08-01T20:39:32Z")

</div>

After updating to 1.10.4, I’m getting a behavior where the Julia extension says it’s “Formatting…” in the bottom corner, but my file isn’t changing. It hangs this way the whole time I’m using VSCode. Additionally, sendin…

---

## [REPL in VS Code does not start in the project's environment anymore](https://discourse.julialang.org/t/repl-in-vs-code-does-not-start-in-the-projects-environment-anymore/117627)

<div class="topic-metadata">

**Author:** [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Replies:** 5\
**Last updated:** [July 30, 2024, 12:31pm UTC](https://discourse.julialang.org/t/repl-in-vs-code-does-not-start-in-the-projects-environment-anymore/117627 "2024-07-30T12:31:30Z")

</div>

I’ve noticed this only recently, I don’t know the reason. Until now, when I started a Julia REPL (e.g. Alt+J, Alt+O) the active environment was the one selected by the extension (as seen in “Julia env” in the lower bar).…

---

## [Bug: running code from active editor doesn't work in v1.102.2](https://discourse.julialang.org/t/bug-running-code-from-active-editor-doesnt-work-in-v1-102-2/117490)

<div class="topic-metadata">

**Author:** [@aris](https://discourse.julialang.org/u/aris)\
**Replies:** 2\
**Last updated:** [July 25, 2024, 8:37pm UTC](https://discourse.julialang.org/t/bug-running-code-from-active-editor-doesnt-work-in-v1-102-2/117490 "2024-07-25T20:37:30Z")

</div>

The usual features of clicking ctrl/shift + enter to run current line from editor into the active repl seem to be broken for the latest release of the extension. The “play button” on the top right of the editor doesn’t …

---

## [Julia extension doesn't load InteractiveUtils properly](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448)

<div class="topic-metadata">

**Author:** [@aerdely](https://discourse.julialang.org/u/aerdely)\
**Replies:** 5\
**Last updated:** [July 25, 2024, 10:15am UTC](https://discourse.julialang.org/t/julia-extension-doesnt-load-interactiveutils-properly/117448 "2024-07-25T10:15:10Z")

</div>

The instruction varinfo() does not work when calling it from code file in VSCode, I had to load manually InteractiveUtils and then execute the function, but the objects global\_err\_handler and is\_disconnected\_exception ar…

---

## [Conflicts between vscode-vim and Julia code block execution](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198)

<div class="topic-metadata">

**Author:** [@Strange\_Xue](https://discourse.julialang.org/u/Strange_Xue)\
**Replies:** 2\
**Last updated:** [July 19, 2024, 5:09pm UTC](https://discourse.julialang.org/t/conflicts-between-vscode-vim-and-julia-code-block-execution/117198 "2024-07-19T17:09:01Z")

</div>

HI guys, I use vscode and vscode-vim extension. When executing Julia code blocks through ctrl + enter in normal model, then the mouse cursor will move through, if I click Esc or some moving commands like e, w, then the c…

---

## [Debugging Julia code in a Jupyter Notebook in VS Code](https://discourse.julialang.org/t/debugging-julia-code-in-a-jupyter-notebook-in-vs-code/117005)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 5\
**Last updated:** [July 14, 2024, 4:06pm UTC](https://discourse.julialang.org/t/debugging-julia-code-in-a-jupyter-notebook-in-vs-code/117005 "2024-07-14T16:06:53Z")

</div>

Hi, I am working with the debugger that comes with Julia for VS Code. This works fine for script files, but I can’t seem to figure out how to get it to work with Jupyter notebooks running Julia code. Any assistance would…

---

## [Icons in WORKSPACE in Activity Bar in VS Code](https://discourse.julialang.org/t/icons-in-workspace-in-activity-bar-in-vs-code/116709)

<div class="topic-metadata">

**Author:** [@daler6](https://discourse.julialang.org/u/daler6)\
**Replies:** 4\
**Last updated:** [July 10, 2024, 9:40pm UTC](https://discourse.julialang.org/t/icons-in-workspace-in-activity-bar-in-vs-code/116709 "2024-07-10T21:40:59Z")

</div>

When I look at my WORKSPACE in the Activity Bar when running Julia in VS Code, I see that the modules, functions, types, data of different types, etc., have icons to the left of their name. I can figure out most of these…

---

## [Sometimes the font color of \`julia\>\` in the VSCode REPL will become yellow](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [July 9, 2024, 2:55pm UTC](https://discourse.julialang.org/t/sometimes-the-font-color-of-julia-in-the-vscode-repl-will-become-yellow/116808 "2024-07-09T14:55:22Z")

</div>

Sometimes the font color of julia\> in the VSCode REPL will become yellow: Normal: I know when there are some errors in the code it will become yellow, but sometimes it still keeps yellow even I have fixed the error…

---

## [Julia REPL in VS code does not display properly](https://discourse.julialang.org/t/julia-repl-in-vs-code-does-not-display-properly/116290)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 0\
**Last updated:** [June 27, 2024, 5:36am UTC](https://discourse.julialang.org/t/julia-repl-in-vs-code-does-not-display-properly/116290 "2024-06-27T05:36:36Z")

</div>

I remember it can display properly some time ago, but don’t know when it can’t unless I enlarge the font to very big using Ctrl + + (but it can display well without doing so before).

---

## [How does the Testing pane work?](https://discourse.julialang.org/t/how-does-the-testing-pane-work/115301)

<div class="topic-metadata">

**Author:** [@Ken\_Williams](https://discourse.julialang.org/u/Ken_Williams)\
**Replies:** 13\
**Last updated:** [June 24, 2024, 8:10pm UTC](https://discourse.julialang.org/t/how-does-the-testing-pane-work/115301 "2024-06-24T20:10:13Z")

</div>

I haven’t been able to find a reference about how the Testing pane in VS Code works for a Julia project’s unit tests. I’ve fiddled around a bit and tried various of file layouts (test\_\*.jl vs. \*\_test.jl, putting in a M…

---

## [How to customize display of custom array type in VSCode workspace and table viewer?](https://discourse.julialang.org/t/how-to-customize-display-of-custom-array-type-in-vscode-workspace-and-table-viewer/115988)

<div class="topic-metadata">

**Author:** [@bbejanov](https://discourse.julialang.org/u/bbejanov)\
**Replies:** 1\
**Last updated:** [June 24, 2024, 10:08am UTC](https://discourse.julialang.org/t/how-to-customize-display-of-custom-array-type-in-vscode-workspace-and-table-viewer/115988 "2024-06-24T10:08:44Z")

</div>

I have two custom array types - TSeries \<: AbstractVector and MVTSeries \<: AbstractMatrix in package TimeSeriesEcon - that don’t display correctly in the Julia Workspace in VS Code. The table viewer is shows the numbers…

---

## [Only 1 thread available in code-server](https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [June 21, 2024, 7:40am UTC](https://discourse.julialang.org/t/only-1-thread-available-in-code-server/110156 "2024-06-21T07:40:17Z")

</div>

Hello, I moved to code-server development (under JupyterHub), but I can’t get more than 1 thread. I don’t have the option in the Julia extension setting, and if I manually edit the Settings.json with "julia.NumThreads":…

---

## [Vs code lang server won't start](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587)

<div class="topic-metadata">

**Author:** [@yjr](https://discourse.julialang.org/u/yjr)\
**Replies:** 11\
**Last updated:** [June 14, 2024, 7:25pm UTC](https://discourse.julialang.org/t/vs-code-lang-server-wont-start/115587 "2024-06-14T19:25:32Z")

</div>

Hello, vscode language server won’t start error msg is: ERROR: LoadError: IOError: connect: permission denied (EACCES) Stacktrace: \[1\] wait\_connected(x::Base.PipeEndpoint) @ Sockets C:\\Users\\yjr\\.julia\\juliaup\\juli…

---

## [How to set monospace fonts for math symbols on VS Code](https://discourse.julialang.org/t/how-to-set-monospace-fonts-for-math-symbols-on-vs-code/115208)

<div class="topic-metadata">

**Author:** [@paalon](https://discourse.julialang.org/u/paalon)\
**Replies:** 5\
**Last updated:** [June 14, 2024, 7:29am UTC](https://discourse.julialang.org/t/how-to-set-monospace-fonts-for-math-symbols-on-vs-code/115208 "2024-06-14T07:29:31Z")

</div>

What is your font setting for VS Code? I use macOS and I have the following setting: But the \\in symbol is displayed as non-monospace size: I also use Cascadia Mono on iTerm2 but it shows well: How do you set mo…

---

## [Security flaws in VS Code](https://discourse.julialang.org/t/security-flaws-in-vs-code/115456)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 7\
**Last updated:** [June 13, 2024, 11:28am UTC](https://discourse.julialang.org/t/security-flaws-in-vs-code/115456 "2024-06-13T11:28:33Z")

</div>

Perhaps this is off-topic, but I came across a rather alarming series of posts on the insecurity of VSCode extensions. I’m sure the Julia ones are fine but I wasn’t aware of just how open VSCode was, and how few checks t…

---

## [How to disable autocomplete " marks in the REPL terminal](https://discourse.julialang.org/t/how-to-disable-autocomplete-marks-in-the-repl-terminal/114641)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 3\
**Last updated:** [May 23, 2024, 8:01pm UTC](https://discourse.julialang.org/t/how-to-disable-autocomplete-marks-in-the-repl-terminal/114641 "2024-05-23T20:01:58Z")

</div>

Hello. I want to disable autocompletion of " (double quotation mark) when I type it in my REPL session under vscode terminal. Note that it is fine to do autocompletion of " in the editor, but I don’t want to have that in…

---

## [The VS Code debugger always gets stuck at the quadratic constraint definition of a JuMP model](https://discourse.julialang.org/t/the-vs-code-debugger-always-gets-stuck-at-the-quadratic-constraint-definition-of-a-jump-model/114285)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 2\
**Last updated:** [May 15, 2024, 9:29am UTC](https://discourse.julialang.org/t/the-vs-code-debugger-always-gets-stuck-at-the-quadratic-constraint-definition-of-a-jump-model/114285 "2024-05-15T09:29:51Z")

</div>

The VS Code debugger always gets stuck at the quadratic constraint definition of a JuMP model. Please launch the debugger to run the following code in the VS Code in an environment where JuMP.jl is installed: using Pkg …

---

## [Setting line length limits in VS Code](https://discourse.julialang.org/t/setting-line-length-limits-in-vs-code/113747)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 6\
**Last updated:** [May 9, 2024, 1:59pm UTC](https://discourse.julialang.org/t/setting-line-length-limits-in-vs-code/113747 "2024-05-09T13:59:11Z")

</div>

Does anyone know how to set a 92 character line length limit or a vertical reference line in VS code?

---

## [Can't start language server with nightly Julia, "Package REPL does not have StyledStrings in its dependencies"](https://discourse.julialang.org/t/cant-start-language-server-with-nightly-julia-package-repl-does-not-have-styledstrings-in-its-dependencies/110071)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 4\
**Last updated:** [May 9, 2024, 1:22am UTC](https://discourse.julialang.org/t/cant-start-language-server-with-nightly-julia-package-repl-does-not-have-styledstrings-in-its-dependencies/110071 "2024-05-09T01:22:15Z")

</div>

Log head: Activating project at \`~/.vscode-oss/extensions/julialang.language-julia-insider-1.7.13-universal/scripts/environments/languageserver/fallback\` \[ Info: Starting the Julia Language Server ERROR: LoadError: Ar…

---

## [VSCode debug crash with 1.10.2](https://discourse.julialang.org/t/vscode-debug-crash-with-1-10-2/111501)

<div class="topic-metadata">

**Author:** [@chaojin](https://discourse.julialang.org/u/chaojin)\
**Replies:** 5\
**Last updated:** [May 1, 2024, 6:35am UTC](https://discourse.julialang.org/t/vscode-debug-crash-with-1-10-2/111501 "2024-05-01T06:35:35Z")

</div>

HI, I just upgrade to 1.10.2 and hit crash which is more like VSCode tools crash when I run nd debug my old code. To rule out my code error, I just create a simple test.jl like below println("This is test1") println("T…

---

## [Side Effect Analysis on Macros](https://discourse.julialang.org/t/side-effect-analysis-on-macros/106526)

<div class="topic-metadata">

**Author:** [@mrufsvold](https://discourse.julialang.org/u/mrufsvold)\
**Replies:** 10\
**Last updated:** [April 25, 2024, 2:12am UTC](https://discourse.julialang.org/t/side-effect-analysis-on-macros/106526 "2024-04-25T02:12:08Z")

</div>

A recurrent challenge for linting Julia is macro mini languages. From chaining with underscores to sum types, there are lots of symbols that get created by macros which are obvious to the human reader but not to LSP. The…

[Previous page](https://discourse.julialang.org/c/tools/vscode/42.md?page=3)

[Next page](https://discourse.julialang.org/c/tools/vscode/42.md?page=5)
