# Sublime Text 4: indentation vexation

**URL:** <https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320>\
**Category:** General Usage\
**Created:** [October 13, 2020, 10:07pm UTC](https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320 "2020-10-13T22:07:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 13, 2020, 10:07pm UTC](https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320/1 "2020-10-13T22:07:35Z")

</div>

Is anyone else having trouble with ST 4 indentation?  
[https://github.com/JuliaEditorSupport/Julia-sublime/issues/90#issuecomment-707996405](https://github.com/JuliaEditorSupport/Julia-sublime/issues/90#issuecomment-707996405)

---

<div class="post-metadata">

**Author:** ![stephenll](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stephenll/32/28751_2.png) [@stephenll](https://discourse.julialang.org/u/stephenll)\
**Post date:** [October 13, 2020, 10:36pm UTC](https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320/2 "2020-10-13T22:36:28Z")

</div>

I use ST4 every day to write Julia code and I’ve never used that functionality. I manually do my indenting out of not knowing any better.

After seeing the [JuliaFormatter](https://github.com/domluna/JuliaFormatter.jl) announcement I’ve been meaning to hack something together in Sublime to utilize that. I will definitely share if I get anything working.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 13, 2020, 11:48pm UTC](https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320/3 "2020-10-13T23:48:56Z")

</div>

Re-indent works flawlessly in ST3. Sometimes it works in ST4. When it works, it is invaluable.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 15, 2020, 3:46am UTC](https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320/4 "2020-10-15T03:46:11Z")

</div>

@randy3k was able to fix the syntax so that the re-indentation works in ST4. Many thanks!

Edit: I regret to have misinformed you, but the re-indentation still doesn’t work properly. I found another pattern which breaks that functionality.

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 15, 2020, 2:32pm UTC](https://discourse.julialang.org/t/sublime-text-4-indentation-vexation/48320/5 "2020-10-15T14:32:44Z")

</div>

JuliaFormatter is great. But if all I want is re-indent a code fragment, or even a single file, it is much more in the flow of things to use the editor itself.
