https://github.com/xxdavid/elixir-alias-autosorter-vscode
VS Code extension that automatically sorts aliases in Elixir modules on save
https://github.com/xxdavid/elixir-alias-autosorter-vscode
elixir vscode-extension
Last synced: 2 months ago
JSON representation
VS Code extension that automatically sorts aliases in Elixir modules on save
- Host: GitHub
- URL: https://github.com/xxdavid/elixir-alias-autosorter-vscode
- Owner: xxdavid
- License: mit
- Created: 2025-08-01T07:19:31.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-09-12T09:41:23.000Z (10 months ago)
- Last Synced: 2025-09-24T14:00:03.630Z (9 months ago)
- Topics: elixir, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=dpavlik.elixir-alias-autosorter-vscode
- Size: 3.63 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Elixir Alias Autosorter
Automatically sorts aliases in Elixir modules on every save.
Never see _The alias X is not alphabetically ordered among its group_ again!

## Features
- Sorts aliases on every save (can be turned off)
- Sorts aliases on demand using the _Sort Elixir Aliases in File_ command
- Aliases are sorted only among its group (delimited by newlines or non-aliases)
- Multi-aliases (such as `alias Phoenix.{Controller, PubSub}`) are sorted as well
- Built to comply with `Credo.Check.Readability.AliasOrder` (with the default `:alpha` ordering)
## Configuration
- `elixirAliasAutosorter.sortOnSave` (defaults to `true`) – Controls whether aliases are sorted
automatically on every save. If turned off, aliases will be sorted only when running the
_Sort Elixir Aliases in File_ command.
- `elixirAliasAutosorter.includeGlob` (defaults to `"**/*.ex"`) – Defines
a [glob pattern](https://code.visualstudio.com/docs/editor/glob-patterns) that is used to filter
files autosorting will be applied to. You can use for example `**/*.{ex, exs}` if you also want
to sort `.exs` files, or `{config,lib,test}/**/*.{ex,exs}` if you want to be more precise.