# Formatting julia code in Pluto notebook cells?

**URL:** https://discourse.julialang.org/t/formatting-julia-code-in-pluto-notebook-cells/97135
**Category:** Pluto
**Created:** [April 5, 2023, 8:40pm UTC](https://discourse.julialang.org/t/formatting-julia-code-in-pluto-notebook-cells/97135 "2023-04-05T20:40:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rud-lucien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rud-lucien/32/38576_2.png) [@rud-lucien](https://discourse.julialang.org/u/rud-lucien)
#### Post date: [April 5, 2023, 8:40pm UTC](https://discourse.julialang.org/t/formatting-julia-code-in-pluto-notebook-cells/97135/1 "2023-04-05T20:40:53Z")

</div>

Hi,

I have recently started using Pluto notebooks and am really enjoying it! I am having lots of fun actually! I love the reactive aspect of this notebook and also love the fact that I can bypass it when I want to by taking advantage of the scoping permitted with let blocks ☺. Any who…

I was just wondering if there is a way to format the Julia code within a Pluto notebook cell? I have searched around online and haven’t found anything regarding this subject (at least not obvious to me anyways). I tend to write pretty poorly formatted code on the fly and was hoping to take advantage of some sort of automated formatter that adheres to a style guide for Julia. I apologize if this is perceived as a dumb question.

Cheers,  
RL

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [April 5, 2023, 8:42pm UTC](https://discourse.julialang.org/t/formatting-julia-code-in-pluto-notebook-cells/97135/2 "2023-04-05T20:42:27Z")

</div>

Could you just run JuliaFormatter on the notebook file itself? The notebook is just a normal Julia script.

---

<div class="post-metadata">

### Author: ![rud-lucien](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rud-lucien/32/38576_2.png) [@rud-lucien](https://discourse.julialang.org/u/rud-lucien)
#### Post date: [April 5, 2023, 8:50pm UTC](https://discourse.julialang.org/t/formatting-julia-code-in-pluto-notebook-cells/97135/3 "2023-04-05T20:50:16Z")

</div>

Great suggestion…I actually didn’t think about trying that. It wasn’t really the solution I was envisioning in my head, but I tried it and it worked! Thanks for the suggestion.
