https://github.com/sarat-ravi/elixir-formatter
VSCode Extension to automatically format Elixir code
https://github.com/sarat-ravi/elixir-formatter
autoformat elixir formatter mix mix-format visual-studio-code visual-studio-code-extension vscode vscode-extension
Last synced: 8 months ago
JSON representation
VSCode Extension to automatically format Elixir code
- Host: GitHub
- URL: https://github.com/sarat-ravi/elixir-formatter
- Owner: sarat-ravi
- License: mit
- Created: 2019-05-18T01:16:30.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T17:40:30.000Z (about 3 years ago)
- Last Synced: 2025-04-14T13:21:30.319Z (10 months ago)
- Topics: autoformat, elixir, formatter, mix, mix-format, visual-studio-code, visual-studio-code-extension, vscode, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=saratravi.elixir-formatter
- Size: 211 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`:
```javascript
{
elixir.formatter: {
mixFormatArgs: "--dry-run",
formatterCwd: "../some/dir/to/run/mix/format/from"
}
}
```
## Requirements
* Install Elixir 1.6
## License
MIT