8000 GitHub - frantic/elixir-formatter: VSCode Extension to automatically format Elixir code
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

frantic/elixir-formatter

 
 

Repository files navigation

Overview

Format your elixir code automatically using mix format, by simply installing this extension and configuring it to be the default formatter for elixir, if it is not already chosen by default. If the editor.formatOnSave setting in Visual Studio Code is set, then the elixir file that is being edited will be formatted automatically on saving.

Configuration

By default, this extension runs mix format using the workspace root directory as the working directory. The following options are available for the user to configure, in settings.json:

{
  elixir.formatter: {
    mixFormatArgs: "--dry-run",
    mixCommandPath: "/etc/custom/elixir/path/bin/mix",
    formatterCwd: "../some/dir/to/run/mix/format/from"
  }
}

Requirements

  • Install Elixir 1.6

License

MIT

About

VSCode Extension to automatically format Elixir code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%
0