# Julia code not being auto-indented .jmd files using Weave.jl in VSCODE

**URL:** <https://discourse.julialang.org/t/julia-code-not-being-auto-indented-jmd-files-using-weave-jl-in-vscode/111098>\
**Category:** General Usage\
**Tags:** weave, weavejl\
**Created:** [March 3, 2024, 4:39pm UTC](https://discourse.julialang.org/t/julia-code-not-being-auto-indented-jmd-files-using-weave-jl-in-vscode/111098 "2024-03-03T16:39:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuvomoy\_Das\_Gupta](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuvomoy_das_gupta/32/10069_2.png) [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Post date:** [March 3, 2024, 4:39pm UTC](https://discourse.julialang.org/t/julia-code-not-being-auto-indented-jmd-files-using-weave-jl-in-vscode/111098/1 "2024-03-03T16:39:38Z")

</div>

Dear All,

I am using the package Weave.jl in VSCODE (filetype: .jmd). When I write julia code within the julia code block

````julia
```julia ```

````

the code is not indented properly, e.g., if I start a for loop, the code looks like

```julia
for i in 1:10 # I am pressing [Enter] here
print(i) # does not get indented automatically
end

```

whereas it should look like:

```julia
for i in 1:10
   print(i)
end

```

When I am writing in .jl files the code gets indented automatically. Does anyone know how to get the code auto-indented in .jmd files?
