# \[ANN\] Julia for VS Code 1.5 released

**URL:** <https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365>\
**Category:** VS Code\
**Tags:** announcement, vscode\
**Created:** [November 12, 2021, 8:22am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365 "2021-11-12T08:22:13Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Fliks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fliks/32/2494_2.png) [@Fliks](https://discourse.julialang.org/u/Fliks)\
**Post date:** [November 12, 2021, 4:32pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/21 "2021-11-12T16:32:42Z")

</div>

Can I remove a keybinding in vscode, so that I could replace the execute selection or block command by this command when I press `ctrl+enter`?

---

<div class="post-metadata">

**Author:** ![CameronBieganek](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cameronbieganek/32/6915_2.png) [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Post date:** [November 12, 2021, 5:55pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/22 "2021-11-12T17:55:29Z")

</div>

> [@pfitzseb](#):
>
> The extension will now provide auto-completions based on your REPL state in some cases

I prefer to only get completions based on the contents of my source files, not the rather arbitrary state of my REPL. Is there a way to disable this feature?

---

<div class="post-metadata">

**Author:** ![brianguenter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianguenter/32/29519_2.png) [@brianguenter](https://discourse.julialang.org/u/brianguenter)\
**Post date:** [November 12, 2021, 6:51pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/23 "2021-11-12T18:51:05Z")

</div>

how does one invoke the Table viewer in vscode? I poked around online and in the docs for the julia extension for vscode but didn’t see an example.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 12, 2021, 8:35pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/24 "2021-11-12T20:35:15Z")

</div>

> [@Fliks](#):
>
> Can I remove a keybinding in vscode, so that I could replace the execute selection or block command by this command when I press `ctrl+enter` ?

Yes, sure. Just add

```julia
    {
        "key": "Ctrl+Enter",
        "command": "-language-julia.executeCodeBlockOrSelection"
    },
    {
        "key": "Ctrl+Enter",
        "command": "language-julia.executeJuliaCodeInREPL"
    }

```

to your keybindings.

> [@CameronBieganek](#):
>
> I prefer to only get completions based on the contents of my source files, not the rather arbitrary state of my REPL. Is there a way to disable this feature?

Doesn’t look like it (although I was fairly sure I added a setting for that). Runtime completions should always look very distinct though and only pop up for `getproperty`/`getindex` calls in global scope, in which case you won’t usually get any static completions anyways. Do open an issue though and I’ll add a setting for this 🙂

> [@brianguenter](#):
>
> how does one invoke the Table viewer in vscode? I poked around online and in the docs for the julia extension for vscode but didn’t see an example.

You can use `vscodedisplay(yourtable)`, `@vscodedisplay yourtable`, or click the “Open in VS Code” button in the Julia workspace.

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [November 12, 2021, 8:46pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/25 "2021-11-12T20:46:40Z")

</div>

Is there anything that FloatingTableView.jl can do to keep pace with the improved data viewer in VS Code? Perhaps instead of a `Blink` window we can open up some similar electron process that works with the features you have added?

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 12, 2021, 9:14pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/26 "2021-11-12T21:14:58Z")

</div>

It probably wouldn’t be too much work to get TableView to feature parity, I just haven’t had the time for that yet.

---

<div class="post-metadata">

**Author:** ![Amval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amval/32/6217_2.png) [@Amval](https://discourse.julialang.org/u/Amval)\
**Post date:** [November 14, 2021, 3:00pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/27 "2021-11-14T15:00:08Z")

</div>

Hello, the runtime autocompletions are a very welcome addition! I have a few questions:

In Atom, there were completions even with nested dictionaries or objects. I have checked and this does nto seem to be the case. E.g.:

```julia
dict = Dict(:a => "a", :b => Dict(:c => "c")) # no suggestions after dict[:b]

```

Is this deliberate or a technical/performance constraint?

Should the `JuliaFormatter` be added to each project manually?

And lastly, how can I get JET.jl to display those inline messages? I have checked the option `Julia: Show runtime diagnostics` in Settings and ran one example, but doesn’t seem to do the trick. Am I missing something?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 14, 2021, 5:48pm UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/28 "2021-11-14T17:48:29Z")

</div>

> [@Amval](#):
>
> Is this deliberate or a technical/performance constraint?

No, I don’t think so. Sounds like a bug.

> [@Amval](#):
>
> Should the `JuliaFormatter` be added to each project manually?

You don’t need to add that package to your environments at all.

> [@Amval](#):
>
> And lastly, how can I get JET.jl to display those inline messages? I have checked the option `Julia: Show runtime diagnostics` in Settings and ran one example, but doesn’t seem to do the trick. Am I missing something?

No, that should work. Do note that you’ll need to be on Julia 1.7 to get a JET version that can display diagnostics in VS Code though.

---

<div class="post-metadata">

**Author:** ![Amval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amval/32/6217_2.png) [@Amval](https://discourse.julialang.org/u/Amval)\
**Post date:** [November 15, 2021, 8:17am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/29 "2021-11-15T08:17:26Z")

</div>

> [@pfitzseb](#):
>
> You don’t need to add that package to your environments at all.

My bad, I had some performance issues previously and I had deactivated it on the global VS Code settings. Anecdotically, seems much faster now 🙂

> [@pfitzseb](#):
>
> No, that should work. Do note that you’ll need to be on Julia 1.7 to get a JET version that can display diagnostics in VS Code though.

So the GUI setting in VS Code seem not to actually add the option. I added it manually and still does not seem to work.

```json
  "julia.showRuntimeDiagnostics": true,

```

Would it help if I open proper bug reports?

```sh
Julia Version 1.7.0-rc2
Commit f23fc0d27a (2021-10-20 12:45 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-10510U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 

```

VS Code `1.62.2`, updated 3 days ago.

---

<div class="post-metadata">

**Author:** ![aviatesk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aviatesk/32/7610_2.png) [@aviatesk](https://discourse.julialang.org/u/aviatesk)\
**Post date:** [November 15, 2021, 8:41am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/30 "2021-11-15T08:41:05Z")

</div>

> [@Amval](#):
>
> Would it help if I open proper bug reports?

Make sure you installed JET version 0.5 or higher. In a case the problem persists even after you confirm that, please raise an issue at julia-vscode repository with the description of your environment.

---

<div class="post-metadata">

**Author:** ![Amval](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/amval/32/6217_2.png) [@Amval](https://discourse.julialang.org/u/Amval)\
**Post date:** [November 15, 2021, 8:42am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/31 "2021-11-15T08:42:10Z")

</div>

I have and will do at some point today, thank you.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 17, 2021, 9:01am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/33 "2021-11-17T09:01:31Z")

</div>

Many of the issues mentioned here should be fixed with v1.5.5:

- Runtime completions can now be properly disabled ([#2551](https://github.com/julia-vscode/julia-vscode/pull/2551))
- Code execution keybindings are now consistent for Weave files ([#2551](https://github.com/julia-vscode/julia-vscode/pull/2551))
- Introduced a helpful warning when `@profview` failed to collect any traces ([#2551](https://github.com/julia-vscode/julia-vscode/pull/2551))
- The REPL is now terminated when VS Code is closed, which should work around issues introduced by the `terminal.integrated.enablePersistentSessions` setting ([#2551](https://github.com/julia-vscode/julia-vscode/pull/2551))
- Fixed various issues with the integrated table viewer ([#2551](https://github.com/julia-vscode/julia-vscode/pull/2551))
- It’s now once again possible to use the `Run/Debug in New Process` commands concurrently ([#2551](https://github.com/julia-vscode/julia-vscode/pull/2551))

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [November 17, 2021, 10:27am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/34 "2021-11-17T10:27:10Z")

</div>

Brilliant thanks - can confirm that the table viewer now works as expected on the example I posted above!

---

<div class="post-metadata">

**Author:** ![Oto\_Brzobohaty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oto_brzobohaty/32/10370_2.png) [@Oto\_Brzobohaty](https://discourse.julialang.org/u/Oto_Brzobohaty)\
**Post date:** [November 18, 2021, 7:21am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/35 "2021-11-18T07:21:48Z")

</div>

Hi, thanks for the hard work.

I am a bit confused. Up to now, I used ctrl+enter to execute “active” line, and it worked even in the for loop body. Now, I can use shift + enter or ctrl + enter, but both commands execute a whole for loop. The same for function.

Is there a way how to get the previous behaviour?

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [November 18, 2021, 9:42am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/36 "2021-11-18T09:42:40Z")

</div>

> [@pfitzseb](#):
>
> ### Better code formatting based on JuliaFormatter.jl

So this means it makes no sense to install the Julia Formatter Extension?  
([https://marketplace.visualstudio.com/items?itemName=singularitti.vscode-julia-formatter](https://marketplace.visualstudio.com/items?itemName=singularitti.vscode-julia-formatter))

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 18, 2021, 9:43am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/37 "2021-11-18T09:43:54Z")

</div>

Probably. That extension allows you to customize formatting via settings though, which is not something the Julia extension does (or will do).

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [November 18, 2021, 9:46am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/38 "2021-11-18T09:46:21Z")

</div>

Another question (or maybe a feature request). It would be nice to get some highlighting on Julia code blocks inside markdown documents. In particular I am referring to `Documenter.jl` pages. So if I write a `@example` block, it just looks like this:

![image](https://global.discourse-cdn.com/julialang/original/3X/3/5/35864cff8b3258e7a9ed74616c258f355eb9fa64.png)

No highlight, neither on the .md source, nor on the preview pane.

If there is no Github issue about this I could open one. Just not sure if I should open on the VS code extension repo, or on Documenter.jl, or somewhere else.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [November 18, 2021, 9:47am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/39 "2021-11-18T09:47:34Z")

</div>

[https://github.com/julia-vscode/julia-vscode/issues/1426](https://github.com/julia-vscode/julia-vscode/issues/1426)

---

<div class="post-metadata">

**Author:** ![e3c6](https://avatars.discourse-cdn.com/v4/letter/e/e79b87/32.png) [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Post date:** [November 18, 2021, 9:48am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/40 "2021-11-18T09:48:54Z")

</div>

Ok, nice. Looking forward to that one.  
Great work.

---

<div class="post-metadata">

**Author:** ![mschauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mschauer/32/13946_2.png) [@mschauer](https://discourse.julialang.org/u/mschauer)\
**Post date:** [November 18, 2021, 10:48am UTC](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365/41 "2021-11-18T10:48:22Z")

</div>

> [@pfitzseb](#):
>
> New default keybindings for code evaluation

Can you edit with a link? That would be helpful.

[Previous page](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365.md?page=1)

[Next page](https://discourse.julialang.org/t/ann-julia-for-vs-code-1-5-released/71365.md?page=3)
