Setting up VS Code for Elixir development
Sergio Tapia Oct 8
I'll show you how to set up VS Code for Elixir development.
You'll get red squiggly lines on non-compiling code, wrong function arity, and even typespec errors!
And the big one: Automatic code formatting with mix format on save! Huge time-saver, believe me.
Make sure Elixir is in your path
Go into your terminal and type
elixir -v, you should see output.
sergiotapia at Sergios-MBP in ~/Work/ $ elixir -v Erlang/OTP 21 [erts-10.1] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [hipe] [dtrace] Elixir 1.7.3 (compiled with Erlang/OTP 21)
Go to your settings, then open the settings.json file, and disable dialyzer.
Open an Elixir project!
You're done. Really that's all you need. Elixir's developer UX story is terrific. Enjoy!