xxdavid
Elixir Alias Autosorter – VS Code extension that automatically sorts aliases in Elixir modules on save
Hi everyone! ![]()
I became tired of manually sorting aliases every time Credo warns they are not in the alphabetical order, and so I created a VS Code extension that sorts the aliases automatically on save (or on demand).
The extension is really trivial, it works just with the text representation (no parsing and traversing ASTs) and it’s fast enough to be run on every save, at least on my machine.
I’ve been using the extension for weeks and it’s been great, so now I would like to share it with you. Any feedback is welcomed. ![]()
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
Popular in Announcing
Renders Jinja templates, either from disk or defined at runtime, with support for all native Jinja features (including extends).
It does...
New
Currently just starting out on a new mini-project - getting zig NIFs to run in elixir.
https://github.com/ityonemo/zigler
The idea here...
New
I’ve started working on a new library to run SQL queries and do basic business intelligence.
Think “Blazer for Elixir.”
Currently it fe...
New
An application wishing to store larger amounts of data typically has two options for doing so:
A new column on some table can be introd...
New
Subscribe to events emitted by EctoWatch, and cache the changed row. Use the sync/3 function to update an in-memory row or list of rows u...
New
ElixirProto: Protobuf-Inspired Serialization for Elixir Events
I wanted to have an Elixir-native serialization for events, that also supp...
New
Announcing: playwright_ex
A simple Elixir client for the Playwright node.js server.
Automate browsers like Chromium, Firefox, Safari an...
New
Hi everyone, at Doofinder we have been building llm_composer for some new apps, and we thought it could be useful to share it with the co...
New
flakify is an igniter installer that allows you to quickly get a Nix flake-based development shell up and running for your Elixir/Phoenix...
New
Hello
Published a new library - ProcessHub!
ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New
Other popular topics
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1]
15:22:35.803 [error] gen_event {lager_file_backend...
New
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
What is the idiomatic way of matching for not nil in Elixir?
E.g.,
First way:
defp halt_if_not_signed_in(conn, signed_in_account) when...
New
As many of you may have realized by now (sorry for all the posts here) I’ve been working on a db problem where I’m trying to aggregate a ...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible.
total = 10
while total != 0
...
New
Is there a way to get the call stack or stack trace at any point in the code? Not from exceptions, but an expression that returns how the...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? https://hexdocs.pm/ecto/Ecto.Repo.h...
New







