ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Elixir​Formatter

by myskoach ST3

Sublime Text 3 plugin for formatting Elixir files on save via `mix format`

Labels elixir, formatting, mix

Details

Installs

  • Total 3K
  • Win 578
  • Mac 2K
  • Linux 981
Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14
Windows 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 1 1 0 0 1 0 1 0 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 1 0 0 1 1 0 3 2 1 0 0 0 2 0 0 1 2 0 0 2 0 0 2 2 0 0 0 1 1 2 0 0 1 4 0 2 2 1 0 1 1 1 0 0 1
Linux 1 0 3 0 0 0 1 0 1 1 0 0 0 0 1 2 1 0 1 1 1 0 0 1 1 0 1 2 1 0 0 1 0 0 1 2 1 1 0 0 0 1 0 0 0 2

Readme

Source
raw.​githubusercontent.​com

ElixirFormatter

Sublime Text 3 plugin for formatting Elixir files on save via mix format.

  1. Formats the file on save using test env
  2. Maintains position in buffer
  3. Goes to line on syntax error
  4. Considers project configs

Caveat Emptor

This code is a fork from this gist which, in turn, is a fork from this unmantained repo. It is currently “maintained” by non-python devs.

Use with care.

Installation

1. Package Control

Look for ElixirFormatter.

2. Through git

  1. Go to your packages folder (in Sublime: Preferences > Browse Packages…).
  2. Clone the repo git clone https://github.com/myskoach/sublime-elixir-formatter.git

3. Manually

Download this repo as an ElixirFormatter folder and save it into your packages (in Sublime: Preferences > Browse Packages…).

Contributing

We need:

  1. Tests
  2. Some config (specifically, which env to use on mix format)

PRs welcome.