Search code examples
sublimetext3elmpackage-control

How to integrate elm-format with Sublime Text


I'm trying to make elm-format work in Sublime Text and am following these instructions: https://packagecontrol.io/packages/Elm%20Language%20Support

Step one says: "Make sure elm-format is in your PATH"

What does that mean? How do I find my path?


Solution

  • PATH is the environment variable holding the list of directories that will be searched when you try to execute a command (like entering elm-format on the command line).

    In the terminal, you can enter echo $PATH to get a colon separated list of all the directories in your PATH.

    What it means is that you'll need to get the elm-format binary (there are instructions here) and place it in one of those directories (/usr/local/bin is a common choice).