Setting up VSCode for Elixir Development


Setting up a VSCode environment before tackling the Chapter 13 exercises.

A side-foray into tooling after being away for a few days.

Basic Installation

Useful videos:

  • Quick ElixirLS highlights tour.

Notes

  • If VSCode Intellisense stops,
    1. Close VSCode
    2. rm -rf .elixir_ls from project directory.
    3. Restart VSCode and wait for ElixirLS to run.
  • There was apparently a fork of ElixirLS which has now un-forked. Use the one in the VSCode marketplace.

User settings.json

{
    "editor.formatOnSave": true,

    "emmet.includeLanguages": {
        "phoenix-heex": "html"
    },

    "tailwindCSS.includeLanguages": {
        "elixir": "html",
        "phoenix-heex": "html"
    }
}

All notes and comments are my own opinion. Follow me at @rgacote@genserver.social