Latest #formatter Threads Top

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
egze
Hi everyone, I wrote a small formatter to make diffs of structure.sql for postgres more readable. StructureSqlFormatter GitHub Contex...
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
ream88
I love the Elixir formatter. In fact, I’ve started using it for ordinary HTML files as well: GitHub - ream88/formatter: Format any HTML w...
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
ca1989
Hi all, I was wondering if it is possible to have a mix format plugin that use comma first notation. Maybe such plugin already exist? ...
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
chocolatedonut
Is there a formatter option that groups same-arity functions grouped (or at least abstains from inserting a newline from already grouped ...
New

This Week's Trending Top

This Month's Trending Top

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

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
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
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
jononomo
I see that Elixir now comes with a .formatter.exs file: # Used by "mix format" [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**...
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
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
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
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
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
ream88
I love the Elixir formatter. In fact, I’ve started using it for ordinary HTML files as well: GitHub - ream88/formatter: Format any HTML w...
New
egze
Hi everyone, I wrote a small formatter to make diffs of structure.sql for postgres more readable. StructureSqlFormatter GitHub Contex...
New
chocolatedonut
Is there a formatter option that groups same-arity functions grouped (or at least abstains from inserting a newline from already grouped ...
New
pmjoe
For example, this is what the current formatter config is generating: cond do !String.starts_with?(message, "!!") -> :error...
New

Trending Over Three Years Top

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
anildigital
Here is list of plugins for different editors Sublime Text 3 — Elixir.tmbundle - https://github.com/elixir-editors/elixir-tmbundle/#co...
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
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
voger
I have this .formatter.exs file next to my mix.exs [ inputs: ["{mix,.formatter}.exs", "{config,lib,test}/**/*.{ex,exs}"], import_dep...
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
clmay
Hi there, I’m currently following an Elixir tutorial and I have the following lines of code in my project: Path.join([path, file]) ...
New
Fl4m3Ph03n1x
Background I am using VIM and I would like for vim to run mix format on save (:w). However, I cannot find anything that does this. Does...
New
beepboop
Why was 98 chosen as the magic number? I can’t find any reference or explanation for it. Usually I see 80, 100 or 120 as the preferred li...
New
michalmuskala
We’re very happy to announce the general availability of erlfmt - an automated code formatter for Erlang. erlfmt is an opinionated Erlan...
New
ryanwinchester
I am curious about :export and :import_deps in the formatter config files. I am assuming, for example, that if I import deps from phoeni...
New
mariusbutuc
It seems to me that credo and mix format currently calculate the line length differently. This experiment is running credo --strict ...
New
elt547
I’ve been fighting a little bit of a battle with my formatters in vs code. I’m not even sure what is formatting my heex at the moment, bu...
New
melomario
Is there anyway to keep “mix format” running and watching files on a specific directory? I tried to run it automatically whenever I save...
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