# VS Code

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

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

**Page:** 7

---

## [Stepping to Base code](https://discourse.julialang.org/t/stepping-to-base-code/108092)

<div class="topic-metadata">

**Author:** [@hlbnet](https://discourse.julialang.org/u/hlbnet)\
**Replies:** 3\
**Last updated:** [December 27, 2023, 3:20pm UTC](https://discourse.julialang.org/t/stepping-to-base-code/108092 "2023-12-27T15:20:26Z")

</div>

Hello, I am learning Julia with VS code. I like to discover code using the debugger, by stepping into code I do not know. Unfortunately, the debugger prevents me from stepping in any code that is not my own code. Is …

---

## [No autocompletion for the built-in Dates module?](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015)

<div class="topic-metadata">

**Author:** [@GeorgeTheFifth](https://discourse.julialang.org/u/GeorgeTheFifth)\
**Replies:** 6\
**Last updated:** [December 26, 2023, 4:56am UTC](https://discourse.julialang.org/t/no-autocompletion-for-the-built-in-dates-module/108015 "2023-12-26T04:56:29Z")

</div>

I am using the VSCode Julia extension v1.65.2. When I import Dates, I get no autocompletion for Dates.. Simply the extension does not suggest anything from Dates module. Is this behavior normal? Is VSCode Julia extension…

---

## [Some functionalities for vscode extension](https://discourse.julialang.org/t/some-functionalities-for-vscode-extension/107895)

<div class="topic-metadata">

**Author:** [@Gravlax](https://discourse.julialang.org/u/Gravlax)\
**Replies:** 6\
**Last updated:** [December 22, 2023, 2:18pm UTC](https://discourse.julialang.org/t/some-functionalities-for-vscode-extension/107895 "2023-12-22T14:18:08Z")

</div>

Hi all, We now use a lot Julia and VScode for teaching. I’d like to ask about 2 things: while we mostly use notebooks, students often need to open the REPL (e.g. to install packages) or other tasks. They always ask …

---

## [Smoothest method to iterate on individual lines of a package?](https://discourse.julialang.org/t/smoothest-method-to-iterate-on-individual-lines-of-a-package/107781)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 0\
**Last updated:** [December 18, 2023, 5:56pm UTC](https://discourse.julialang.org/t/smoothest-method-to-iterate-on-individual-lines-of-a-package/107781 "2023-12-18T17:56:30Z")

</div>

Continuing the discussion from Executing code blocks with REPL workspace: I think the main workflow I am trying to understand/improve is a way to test and iterate on individual lines in a function in a package without h…

---

## [Collapse all functions in Outline section of VS Code](https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765)

<div class="topic-metadata">

**Author:** [@Alseidon](https://discourse.julialang.org/u/Alseidon)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 12:21pm UTC](https://discourse.julialang.org/t/collapse-all-functions-in-outline-section-of-vs-code/107765 "2023-12-18T12:21:33Z")

</div>

Is it possible to collapse all functions in the Outline section, like you would do with the folders in the Explorer? Currently, every function has underneath it its parameters and local variables. I can collapse each…

---

## [VSCode REPL Namespaces/Modules](https://discourse.julialang.org/t/vscode-repl-namespaces-modules/103170)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 3:43pm UTC](https://discourse.julialang.org/t/vscode-repl-namespaces-modules/103170 "2023-12-14T15:43:29Z")

</div>

How is this still happening? How are you living with this? I expected the REPL module switching released with Julia 1.9 to fix this issue. (DataFrames) julia\> x = 3 # Ctrl + Enter 3 (DataFrames) julia\> x # Typed in…

---

## [Language Server Crash after recent VSCode update](https://discourse.julialang.org/t/language-server-crash-after-recent-vscode-update/85844)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 9\
**Last updated:** [August 24, 2022, 1:40am UTC](https://discourse.julialang.org/t/language-server-crash-after-recent-vscode-update/85844 "2022-08-24T01:40:01Z")

</div>

Not sure what I need to do to understand, fix, or report this. Activating project at \`c:\\Users\\username\\.vscode\\extensions\\julialang.language-julia-1.6.31\\scripts\\environments\\languageserver\\v1.7\` \[ Info: Starting the …

---

## [Convenience... for simple, concretely-typed, type-inferred variables that do not depend on the type of the arguments, can the editor help me a bit?](https://discourse.julialang.org/t/convenience-for-simple-concretely-typed-type-inferred-variables-that-do-not-depend-on-the-type-of-the-arguments-can-the-editor-help-me-a-bit/107465)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [December 11, 2023, 8:47pm UTC](https://discourse.julialang.org/t/convenience-for-simple-concretely-typed-type-inferred-variables-that-do-not-depend-on-the-type-of-the-arguments-can-the-editor-help-me-a-bit/107465 "2023-12-11T20:47:30Z")

</div>

Several algorithms have certain parts with a concrete type. The algorithm might operate on a concrete data structure or have a part of the algorithm where the variable has the same concrete type no matter what type of i…

---

## [Setting run/build target?](https://discourse.julialang.org/t/setting-run-build-target/107049)

<div class="topic-metadata">

**Author:** [@grahamas](https://discourse.julialang.org/u/grahamas)\
**Replies:** 2\
**Last updated:** [December 6, 2023, 5:01am UTC](https://discourse.julialang.org/t/setting-run-build-target/107049 "2023-12-06T05:01:10Z")

</div>

Most of the time, my workflow is something like Write module Write script calling functions in module Run script and get an error in a function in the module Fix error Repeat steps 3-4 forever The problem is that afte…

---

## [Pyimport crashes VSCode Julia REPL](https://discourse.julialang.org/t/pyimport-crashes-vscode-julia-repl/107172)

<div class="topic-metadata">

**Author:** [@Gast](https://discourse.julialang.org/u/Gast)\
**Replies:** 4\
**Last updated:** [December 5, 2023, 9:55pm UTC](https://discourse.julialang.org/t/pyimport-crashes-vscode-julia-repl/107172 "2023-12-05T21:55:41Z")

</div>

Importing the Python module Scipy instantly crashes and closes VSCode Julia REPL before I can see the error message. For instance, the following code crashes my REPL every time: julia\> using PyCall julia\> mv = pyimport…

---

## [Julia Language Server keep crashing, even after reinstall](https://discourse.julialang.org/t/julia-language-server-keep-crashing-even-after-reinstall/67002)

<div class="topic-metadata">

**Author:** [@jeffreyesun](https://discourse.julialang.org/u/jeffreyesun)\
**Replies:** 8\
**Last updated:** [November 29, 2023, 7:41pm UTC](https://discourse.julialang.org/t/julia-language-server-keep-crashing-even-after-reinstall/67002 "2023-11-29T19:41:50Z")

</div>

I hope this is the right place to post this, but recently vscode has become almost unusable because of how often the language server crashes and has to restart. I’ve already uninstalled julia and vscode, and deleted ~/.j…

---

## ["What's in your Julia and Quarto?"](https://discourse.julialang.org/t/whats-in-your-julia-and-quarto/91254)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 10\
**Last updated:** [November 29, 2023, 7:07pm UTC](https://discourse.julialang.org/t/whats-in-your-julia-and-quarto/91254 "2023-11-29T19:07:20Z")

</div>

Some of us are using Quarto with Julia, so I thought it would be nice to have a permanent thread on this topic taking inspiration from What is in your startup.jl? by @oxinabox. It would be great to hear about everyone’s …

---

## [Running @testitem in VS Code fails](https://discourse.julialang.org/t/running-testitem-in-vs-code-fails/106527)

<div class="topic-metadata">

**Author:** [@Tobias-Thomas](https://discourse.julialang.org/u/Tobias-Thomas)\
**Replies:** 7\
**Last updated:** [November 22, 2023, 3:58pm UTC](https://discourse.julialang.org/t/running-testitem-in-vs-code-fails/106527 "2023-11-22T15:58:16Z")

</div>

Hi everyone, I am currently developing a small package and wrote some Unit-tests for it. Since I am developing it in VS Code, I am using the TestItemRunner.jl package. The tests also work as expected when using the Pac…

---

## [How to turn off lightbulb pop-up in vscode](https://discourse.julialang.org/t/how-to-turn-off-lightbulb-pop-up-in-vscode/106017)

<div class="topic-metadata">

**Author:** [@Nathan\_Boyer](https://discourse.julialang.org/u/Nathan_Boyer)\
**Replies:** 2\
**Last updated:** [November 9, 2023, 10:21pm UTC](https://discourse.julialang.org/t/how-to-turn-off-lightbulb-pop-up-in-vscode/106017 "2023-11-09T22:21:49Z")

</div>

I am trying to read through an ipynb (never used before), but every cell has a lightbulb covering the content. What is an SPDX license identifier? Why is it prompting me for this in every cell? How can I turn off these…

---

## [Shortcut to type |\>?](https://discourse.julialang.org/t/shortcut-to-type/47012)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 11\
**Last updated:** [November 7, 2023, 8:53pm UTC](https://discourse.julialang.org/t/shortcut-to-type/47012 "2023-11-07T20:53:01Z")

</div>

The piping operator |\> is very useful, especially when working in the REPL. However I do not find it convenient to type, it requires some finger gymnastic and it’s not very fast. Maybe it is the case because I have a fre…

---

## [VSCode's 'Go to definition' to recognise functions from other libraries](https://discourse.julialang.org/t/vscodes-go-to-definition-to-recognise-functions-from-other-libraries/105688)

<div class="topic-metadata">

**Author:** [@molecularMaestro](https://discourse.julialang.org/u/molecularMaestro)\
**Replies:** 6\
**Last updated:** [November 2, 2023, 7:14pm UTC](https://discourse.julialang.org/t/vscodes-go-to-definition-to-recognise-functions-from-other-libraries/105688 "2023-11-02T19:14:41Z")

</div>

I cannot seem to inspect functions or classes defined in external libraries using VSCode’s ‘Go to definition’ (F12) feature. For example, with the following simple example: using Plots plot(\[1, 2, 3\], \[1, 2, 3\]) I get…

---

## [Is there a built-in command to weave and tangle current file in Julia in VS Code?](https://discourse.julialang.org/t/is-there-a-built-in-command-to-weave-and-tangle-current-file-in-julia-in-vs-code/105564)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 3\
**Last updated:** [October 31, 2023, 4:03pm UTC](https://discourse.julialang.org/t/is-there-a-built-in-command-to-weave-and-tangle-current-file-in-julia-in-vs-code/105564 "2023-10-31T16:03:28Z")

</div>

Is there a palette command in Julia in VS Code to weave and tange the current document? Or should one always run a script like this one? using Weave filename = normpath("./", "file.jmd") weave(filename; doctype="md2pdf"…

---

## [Makie Heatmap Tooltips](https://discourse.julialang.org/t/makie-heatmap-tooltips/105522)

<div class="topic-metadata">

**Author:** [@bobmccrory](https://discourse.julialang.org/u/bobmccrory)\
**Replies:** 3\
**Last updated:** [October 29, 2023, 11:35pm UTC](https://discourse.julialang.org/t/makie-heatmap-tooltips/105522 "2023-10-29T23:35:01Z")

</div>

I am trying to add tooltips to a heatmap in VS Code/Jupyter/CairoMakie. Could someone please post some simple example code? Thanks.

---

## [Pluto hangs while loading in VSC](https://discourse.julialang.org/t/pluto-hangs-while-loading-in-vsc/105176)

<div class="topic-metadata">

**Author:** [@friscodelrosario](https://discourse.julialang.org/u/friscodelrosario)\
**Replies:** 4\
**Last updated:** [October 23, 2023, 3:13pm UTC](https://discourse.julialang.org/t/pluto-hangs-while-loading-in-vsc/105176 "2023-10-23T15:13:12Z")

</div>

After “Pluto: Start a notebook” in the VSC command palette, I get Pluto loading, where it hangs. Perhaps this red dot is an alert to something?

---

## [FromFile.jl's @from should be recognized by the julia-vscode extension](https://discourse.julialang.org/t/fromfile-jls-from-should-be-recognized-by-the-julia-vscode-extension/105293)

<div class="topic-metadata">

**Author:** [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Replies:** 6\
**Last updated:** [October 23, 2023, 3:00pm UTC](https://discourse.julialang.org/t/fromfile-jls-from-should-be-recognized-by-the-julia-vscode-extension/105293 "2023-10-23T15:00:30Z")

</div>

FromFile.jl fans are pushing to integrate FromFile.jl functionality integrated into Julia itself. Part of the motivation is to improve compatability of the VSCode extension with FromFile.jl. There was pull request to do…

---

## [My vscode debugging experience is abysmal](https://discourse.julialang.org/t/my-vscode-debugging-experience-is-abysmal/105275)

<div class="topic-metadata">

**Author:** [@maxfreu](https://discourse.julialang.org/u/maxfreu)\
**Replies:** 8\
**Last updated:** [October 22, 2023, 5:31pm UTC](https://discourse.julialang.org/t/my-vscode-debugging-experience-is-abysmal/105275 "2023-10-22T17:31:26Z")

</div>

Hi! Sorry for the flaming title… but I’m really frustrated. For me, the vscode debugger just never works; I always end up putting print and show statements somewhere and relying on revise. That also works, but sometimes …

---

## [How to declare a global variable without initializing it?](https://discourse.julialang.org/t/how-to-declare-a-global-variable-without-initializing-it/105225)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 5\
**Last updated:** [October 20, 2023, 12:06pm UTC](https://discourse.julialang.org/t/how-to-declare-a-global-variable-without-initializing-it/105225 "2023-10-20T12:06:03Z")

</div>

Say I declare the following outside all functions, VSCode complains that exportfile is missing reference, on that line and on all lines referencing the symbol. global exportfile::IOStream But if I initialize it there w…

---

## [Regarding missing references in VSCode](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197)

<div class="topic-metadata">

**Author:** [@LeoK987](https://discourse.julialang.org/u/LeoK987)\
**Replies:** 6\
**Last updated:** [October 20, 2023, 11:09am UTC](https://discourse.julialang.org/t/regarding-missing-references-in-vscode/105197 "2023-10-20T11:09:37Z")

</div>

I found the latest extension working well with symbols in packages and modules. But it appears it doesn’t work with includes. Symbols are marked missing both in included and including sides. Not sure if it is what it …

---

## [How do I interactively test functions inside of a module?](https://discourse.julialang.org/t/how-do-i-interactively-test-functions-inside-of-a-module/105002)

<div class="topic-metadata">

**Author:** [@fxgn](https://discourse.julialang.org/u/fxgn)\
**Replies:** 4\
**Last updated:** [October 16, 2023, 12:16pm UTC](https://discourse.julialang.org/t/how-do-i-interactively-test-functions-inside-of-a-module/105002 "2023-10-16T12:16:52Z")

</div>

In VSCode, I can send a function definition to the REPL and test it interactively from there. However, I can’t do that if the function is inside of a module but is not exported. How do I test private module functions whi…

---

## [Running consecutive cells in REPL serially?](https://discourse.julialang.org/t/running-consecutive-cells-in-repl-serially/104880)

<div class="topic-metadata">

**Author:** [@afishy](https://discourse.julialang.org/u/afishy)\
**Replies:** 1\
**Last updated:** [October 12, 2023, 6:23am UTC](https://discourse.julialang.org/t/running-consecutive-cells-in-repl-serially/104880 "2023-10-12T06:23:12Z")

</div>

Since a recent update, when I run a code cell from a script using Alt+Shift+Enter, it shows each expression being executed in the cell. While that’s running, if I run another cell, it will try to run it in parallel while…

---

## [Language server broken?](https://discourse.julialang.org/t/language-server-broken/104071)

<div class="topic-metadata">

**Author:** [@Salmon](https://discourse.julialang.org/u/Salmon)\
**Replies:** 13\
**Last updated:** [September 29, 2023, 3:12pm UTC](https://discourse.julialang.org/t/language-server-broken/104071 "2023-09-29T15:12:43Z")

</div>

Hi everyone, since today the language server seems to be broken for me. After running julia for a short time it becomes unresponsive. In the output of the Julia language server there are a stack overflow errors: \[ Info…

---

## [Starting Julia debugger in a given directory](https://discourse.julialang.org/t/starting-julia-debugger-in-a-given-directory/104282)

<div class="topic-metadata">

**Author:** [@wujinq](https://discourse.julialang.org/u/wujinq)\
**Replies:** 1\
**Last updated:** [September 26, 2023, 10:20pm UTC](https://discourse.julialang.org/t/starting-julia-debugger-in-a-given-directory/104282 "2023-09-26T22:20:30Z")

</div>

I’m writing a script that read files in the same folder that contains the script itself. So the script starts with something like let wfn\_file\_name = "WFN\_co.h5", eqp\_file\_name = "eqp\_co.dat", itrs\_max = 1 …

---

## [How to make plots appear inside a pane in vscode (instead of "GKS QtTerm")?](https://discourse.julialang.org/t/how-to-make-plots-appear-inside-a-pane-in-vscode-instead-of-gks-qtterm/66930)

<div class="topic-metadata">

**Author:** [@mkarikom](https://discourse.julialang.org/u/mkarikom)\
**Replies:** 13\
**Last updated:** [September 23, 2023, 2:00am UTC](https://discourse.julialang.org/t/how-to-make-plots-appear-inside-a-pane-in-vscode-instead-of-gks-qtterm/66930 "2023-09-23T02:00:49Z")

</div>

Question: How can I get a plots pane and not in “GKS QtTerm” (not sure what GKS or QtTerm are)? Background: 1. On the julia vscode site, it shows the plot inside a pane: However, when I try to plot, it always opens …

---

## [Using Documentation panel causes error](https://discourse.julialang.org/t/using-documentation-panel-causes-error/104163)

<div class="topic-metadata">

**Author:** [@benninkrs](https://discourse.julialang.org/u/benninkrs)\
**Replies:** 0\
**Last updated:** [September 22, 2023, 6:47pm UTC](https://discourse.julialang.org/t/using-documentation-panel-causes-error/104163 "2023-09-22T18:47:50Z")

</div>

Starting a day or two ago, whenever I try to use the Documentation pane in vscode it does nothing except pop up an error notice that says “The Julia language extension crashed …” I’m running Windows 10, Julia 1.9.2, vsc…

---

## [New Julia process every time I open VSCode](https://discourse.julialang.org/t/new-julia-process-every-time-i-open-vscode/55453)

<div class="topic-metadata">

**Author:** [@CFS](https://discourse.julialang.org/u/CFS)\
**Replies:** 5\
**Last updated:** [September 22, 2023, 1:02pm UTC](https://discourse.julialang.org/t/new-julia-process-every-time-i-open-vscode/55453 "2023-09-22T13:02:51Z")

</div>

When I open VSCode, a new julia process is created and immediately takes up 600+ MB of RAM (which is 10x more than Python). That’s not so bad though. But when I close VSCode, the process keeps running with 0 CPU usage bu…

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

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