Latest #formatter Threads Top

aptinio
I just published def_layout, a formatter plugin that lays out a module’s functions: callbacks first in source order, public functions alp...
New
Florin
You’ve probably seen this: someone writes a perfectly sensible create table with columns in whatever order popped into their head. A bool...
New
saleyn
Hi everyone! I’d like to share ExAlign, a new Mix formatter plugin that adds gofmt style column alignment on top of the standard Elixir ...
New
aptinio
I just published canonical_tailwind, a formatter plugin that canonicalizes Tailwind CSS utility classes in HEEx templates. - mr-4 custom...
New
rhcarvalho
LiveView 1.1 ships with a new :inline_matcher HTMLFormatter config that defaults to ["link", "button"]. It’s a great addition that makes...
New
arcanemachine
I saw this topic getting some traction over on the Erlang Forums, so I want to resurrect this topic here (previous discussion here): Sh...
New
bradley
I’ve been recently been doing the “vibe coding” thing a lot using cursor and I’m finding that very frequently the models don’t group live...
New
binarypaladin
I have recently started messing with Zed as an editor. I really, really like it. While I don’t go too heavy on extensions, one that I re...
New
pmjoe
For example, this is what the current formatter config is generating: cond do !String.starts_with?(message, "!!") -> :error...
New
budgie
I know you can use plugins, but I couldn’t find any in the hex repos for formatting CSS and JS/TS. What’s the recommended solution for this?
New

This Week's Trending Top

aptinio
I just published canonical_tailwind, a formatter plugin that canonicalizes Tailwind CSS utility classes in HEEx templates. - mr-4 custom...
New

This Month's Trending Top

aptinio
I just published def_layout, a formatter plugin that lays out a module’s functions: callbacks first in source order, public functions alp...
New

This Year's Trending Top

zorn
I often will get reminded by credo to sort my alias calls like below. Is there a way I could configure the Elixir formatter (that is kic...
New
bradley
I’ve been recently been doing the “vibe coding” thing a lot using cursor and I’m finding that very frequently the models don’t group live...
New
Florin
You’ve probably seen this: someone writes a perfectly sensible create table with columns in whatever order popped into their head. A bool...
New
rhcarvalho
LiveView 1.1 ships with a new :inline_matcher HTMLFormatter config that defaults to ["link", "button"]. It’s a great addition that makes...
New
saleyn
Hi everyone! I’d like to share ExAlign, a new Mix formatter plugin that adds gofmt style column alignment on top of the standard Elixir ...
New

Last Three Year's Trending Top

mruoss
Hey there, doea anybody know if there is a way to configure livebook’s code formatter? Where is its .formatter.exs?
New
aziz
I’m posting this as a reference as I couldn’t find a post related to this error message. This issue can arise in umbrella projects that ...
New
markmark206
HEEX formatter (Phoenix.LiveView.HTMLFormatter / mix format) seems to introduce an unexpected line break in the generated html. User erro...
New
pmarreck
Go, which I am a massive critic of, got 2 things correct, in my estimation. The first is gofmt, which actually inspired mix format. But ...
New
ca1989
Hi all, my editor (neovim + elixir-ls via coc.nvim) does format on save. Randomly, it adds parenthesis around macros, so I have a diff ...
New
marcandre
For people that love trailing commas, I released v2.0 of the freedom formatter. It is now a plugin for the builtin formatter (requires El...
New
jononomo
I see that Elixir now comes with a .formatter.exs file: # Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**...
New
arcanemachine
I saw this topic getting some traction over on the Erlang Forums, so I want to resurrect this topic here (previous discussion here): Sh...
New
francois1
I use Elixir 1.15.7 OTP 26 both in development (Windows) and on a GitHub runner (ubuntu-latest). The GH Action fails on: mix format --ch...
New
DiogoSL
Hi there, me and my friend are working on the same project and we use the mix format command to format our code. The problem is that he ...
New
sodapopcan
So after complaining about this for the third or fourth time on this forum, I figured I should make a proposal. TL;DR with can be hard t...
New
fceruti
I’m building a library that’s constantly re generating certain modules, building them from string templates. The generated modules includ...
New
Papillon6814
Hello there, it’s been a while since I used elixir for my development last time. I’d like to use formatter of mix in my project. first ...
New
fceruti
I’ve noticed something in my own code, that every time I create a macro, I need to add it to the local_without_parens list in .formatter....
New
binarypaladin
We’re currently trying to tighten up standards on an existing code base. One of the current topics is about line length, specifically on ...
New

Trending Over Three Years Top

AndrewKlymchuk
Hello folks! Are there any libraries for formatting of HEEx templates?
New
feliperenan
Hi people :wave: We have been working on a Formatter to format Heex templates. The idea is to have a similar experience as we do when fo...
New
Papillon6814
Hi! I’m wondering if I should use formatter of elixir. I have never used any formatters in past projects. So do you use formatter? And w...
New
kokolegorille
Hello everyone, I have a noob question about formatter… I have this code @attack_array [ 0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,2,0,0,0,...
New
elt547
What do y’all think about the defaults of the mix formatter? I often find long lines being being turned into multiple breaks with weird i...
New
JohnSmall
I’m working my way through the Programming Phoenix > 1.4 book and I’ve got a problem with the formatter. I’m using Atom with Elixir a...
New
axelson
Is it possible to configure the formatter to exclude some files? I’m currently using this as the default .formatter.exs: [ inputs: ["...
New
anildigital
Here is list of plugins for different editors Sublime Text 3 — Elixir.tmbundle - https://github.com/elixir-editors/elixir-tmbundle/#co...
New
victorolinasc
I’d like to propose a silly typespec discussion: what is your style guidelines for writing typespecs? I mean, do you: use parentheses ...
New
wfgilman
Between Elixir Time and Timex I can’t seem to figure out how to get a simple time and format it conventionally. Does anyone know how to d...
New
Sanjibukai
Hi everybody, I am working within a Phoenix Umbrella Project and I’m using Elixir-LS in VSCode. This extension has a setting elixirLS.p...
New
voger
I have this .formatter.exs file next to my mix.exs [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], import_dep...
New
boblancer
Hi Wanted opinion about what would be the best practice to enforce auto formatting in CI pipeline I was thinking that I could run mix f...
New
tadasajon
My partner and I are working on a codebase together and we have something different in our setup that is causing his system to add parens...
New
Fl4m3Ph03n1x
Background I am using VSCode to do my Phoenix app, however, when modifying the app.css I realized the formatting was literally breaking m...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement