# Warning: VSCode formatter shredders code!

**URL:** https://discourse.julialang.org/t/warning-vscode-formatter-shredders-code/4663
**Category:** General Usage
**Created:** [July 5, 2017, 1:26pm UTC](https://discourse.julialang.org/t/warning-vscode-formatter-shredders-code/4663 "2017-07-05T13:26:38Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![leiteiro](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@leiteiro](https://discourse.julialang.org/u/leiteiro)
#### Post date: [July 5, 2017, 1:26pm UTC](https://discourse.julialang.org/t/warning-vscode-formatter-shredders-code/4663/1 "2017-07-05T13:26:38Z")

</div>

I used Visual Studio Code 1.13.1 on Windows10 and  
Julia v0.6 to shredder my code.

And this is how you do it: Right click, format document.

Before:

```
function f(len::Int)
    R = Array{Int}(len)
    a = c+d
R end

```

After:

```
function f(len::Int)
    R = Array{Int}(len)
    a = c + d
    end

```

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [July 5, 2017, 1:56pm UTC](https://discourse.julialang.org/t/warning-vscode-formatter-shredders-code/4663/2 "2017-07-05T13:56:23Z")

</div>

Thanks for reporting that, I can replicate it. We’ll try to get a bugfix release out ASAP.

Issue on github tracking this: [https://github.com/JuliaEditorSupport/LanguageServer.jl/issues/106](https://github.com/JuliaEditorSupport/LanguageServer.jl/issues/106)

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [July 5, 2017, 3:42pm UTC](https://discourse.julialang.org/t/warning-vscode-formatter-shredders-code/4663/3 "2017-07-05T15:42:49Z")

</div>

We have a release candidate that fixes this here:

[https://github.com/JuliaEditorSupport/julia-vscode/releases/tag/v0.6.2-rc1](https://github.com/JuliaEditorSupport/julia-vscode/releases/tag/v0.6.2-rc1)

It would be great if some folks want to try that and report back. If we don’t hear negative feedback, we’ll probably publish this later tonight to the marketplace.

---

<div class="post-metadata">

### Author: ![davidanthoff](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/davidanthoff/32/223493_2.png) [@davidanthoff](https://discourse.julialang.org/u/davidanthoff)
#### Post date: [July 5, 2017, 8:17pm UTC](https://discourse.julialang.org/t/warning-vscode-formatter-shredders-code/4663/4 "2017-07-05T20:17:12Z")

</div>

We just pushed v0.6.2 of the extension to the marketplace and this issue should be fixed in the update.
