# Format code: guides?

**URL:** <https://discourse.julialang.org/t/format-code-guides/28780>\
**Category:** Juno\
**Created:** [September 15, 2019, 2:48am UTC](https://discourse.julialang.org/t/format-code-guides/28780 "2019-09-15T02:48:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Egwene\_al\_Vere](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@Egwene\_al\_Vere](https://discourse.julialang.org/u/Egwene_al_Vere)\
**Post date:** [September 15, 2019, 2:48am UTC](https://discourse.julialang.org/t/format-code-guides/28780/1 "2019-09-15T02:48:41Z")

</div>

Where is the rules for the “Format code” located? Juno is split among many github repos and I’m not sure which one this function resides in. I want to study it as some good code formatting guidelines. One thing I noticed is that it will change e.g.  
`a = [sin(i) for i in 0:0.1:10]`  
to  
`a = [sin(i) for i = 0:0.1:10]`  
Is there a reason for preferring `=` over `in`? (2 key-stroke instead of 1?) Thanks!

---

<div class="post-metadata">

**Author:** ![xiaodai](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/xiaodai/32/15937_2.png) [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Post date:** [September 15, 2019, 3:06am UTC](https://discourse.julialang.org/t/format-code-guides/28780/2 "2019-09-15T03:06:55Z")

</div>

Personally, I prefer `in` as it makes more semantic sense.

---

<div class="post-metadata">

**Author:** ![zaki](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zaki/32/10300_2.png) [@zaki](https://discourse.julialang.org/u/zaki)\
**Post date:** [September 15, 2019, 3:58am UTC](https://discourse.julialang.org/t/format-code-guides/28780/3 "2019-09-15T03:58:36Z")

</div>

[This discussion/issue on github](https://github.com/domluna/JuliaFormatter.jl/issues/34) provides some reasons for preferring `=` vs `in` and vice-versa
