# Problem with formatting elixir in vs code

**URL:** <https://forum.elixirforum.com/t/problem-with-formatting-elixir-in-vs-code/52398>\
**Category:** Questions\
**Tags:** troubleshooting, learning-elixir\
**Created:** [December 10, 2022, 10:02am UTC](https://forum.elixirforum.com/t/problem-with-formatting-elixir-in-vs-code/52398 "2022-12-10T10:02:05Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![KristerV](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/kristerv/32/13808_2.png) [@KristerV](https://forum.elixirforum.com/u/KristerV)\
**Post date:** [December 10, 2022, 3:47pm UTC](https://forum.elixirforum.com/t/problem-with-formatting-elixir-in-vs-code/52398/6 "2022-12-10T15:47:24Z")

</div>

i actually haven’t been able to get any formatters to work properly. so i made a “stupid” solution.

I use the [Run on Save](https://marketplace.visualstudio.com/items?itemName=emeraldwalk.RunOnSave) extension to run `mix format` as it would in Bash (CLI). then all you need to do is make sure `mix format` actually works by using it in Bash.

---

_[View the full topic](https://forum.elixirforum.com/t/problem-with-formatting-elixir-in-vs-code/52398)._
