# Identation in Juno

**URL:** https://discourse.julialang.org/t/identation-in-juno/7651
**Category:** General Usage
**Tags:** juno
**Created:** [December 9, 2017, 2:33pm UTC](https://discourse.julialang.org/t/identation-in-juno/7651 "2017-12-09T14:33:43Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dharasim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dharasim/32/3579_2.png) [@dharasim](https://discourse.julialang.org/u/dharasim)
#### Post date: [December 9, 2017, 2:33pm UTC](https://discourse.julialang.org/t/identation-in-juno/7651/1 "2017-12-09T14:33:43Z")

</div>

I like to write lists and list comprehensions in multiple lines like:

```julia
a = [
    1,
    2
]

```

This is fine in Julia, but In Juno, however, this doesn’t work. I have to write one of those two versions:

```julia
a = [
    1,
    2
    ]

begin
    a = [
        1,
        2
    ]
end

```

Is it planed to enable writing the first version at some point or does anybody know how I can fix this in atom by myself?

---

<div class="post-metadata">

### Author: ![ksmcreynolds](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ksmcreynolds/32/860_2.png) [@ksmcreynolds](https://discourse.julialang.org/u/ksmcreynolds)
#### Post date: [December 9, 2017, 5:52pm UTC](https://discourse.julialang.org/t/identation-in-juno/7651/2 "2017-12-09T17:52:28Z")

</div>

I copy and pasted the first one into Juno (both in a file and in the console), and it works fine. What error do you get when you input the first one?

---

<div class="post-metadata">

### Author: ![dharasim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dharasim/32/3579_2.png) [@dharasim](https://discourse.julialang.org/u/dharasim)
#### Post date: [December 9, 2017, 7:04pm UTC](https://discourse.julialang.org/t/identation-in-juno/7651/3 "2017-12-09T19:04:33Z")

</div>

That’s interesting! It also works for me in the console and in a file if I eval the whole file, but I get

> syntax: incomplete: premature end of input

if I eval on the first three lines and

> syntax: unexpected “]”

on the last line.
