kayoj

kayoj

Why Does Elixir Formatter Act Differently in Cursor AI vs Standard Setup?

Hello

I have been testing different environments for Elixir development & noticed something odd. When I run the Elixir formatter locally in my usual setup, it gives consistent results. :slightly_smiling_face: But when I try formatting the same code inside Cursor AI; the output sometimes looks slightly different, especially with long pipeline chains and spacing around function arguments.:innocent:

I’m wondering if anyone else has noticed this? :thinking: Could it be related to Cursor AI applying its own formatting rules on top of Elixir’s defaults, or maybe some hidden config I’m not aware of? :thinking: This makes it tricky when working in teams, since code styles should ideally stay the same across all environments.

For reference, here’s the official Elixir Formatter Guide. Any ideas on aligning Cursor AI with the standard Elixir formatter would be really helpful.:slightly_smiling_face:

Thank you !!:slightly_smiling_face:

#ai

Most Liked

sbuttgereit

sbuttgereit

I use Cursor and have it set up to format on save (via the formatter) and I haven’t noticed anything odd.

The behaviors closest to what you describe tend to be related to Cursor Tab. Cursor Tab autocomplete will sometimes sneak in when I’m not expecting it and make changes; this could go unnoticed if I was keyboarding around for other reasons, and this would also including it’s idea of formatting since it tries to add not just lines of code, but code in what it sees as a consistent format (consistent with what may vary).

I’ve found Cursor Tab to be kinda annoying and have it turned of and since then I really haven’t seen that sort of unnoticed strangeness, including in formatting. It’s a bit ironic because Cursor Tab was one of the bigger reasons I signed up for Cursor… but over time it became less helpful and more something I’d be continually contradicting.

Where Next?

Popular in AI / LLMs Top

ricksonoliveira
Hey folks, I have been looking for an alternative to good old VsCode for a while. Have tried some vim and emacs editors with their plugi...
New
AndyL
Elixir has rapidly changing hex packages, both public and private. For people who use AI Coding Tools (Aider, Cursor, Windsurf, etc.), h...
New
AstonJ
With AI being a hot topic in the mainstream right now and with our industry at its helm (so making us the people who might be able to do...
#ai
New
DaAnalyst
My personal favorite is the ability to answer how probable it is their answer is correct, or simply to be able to answer “I don’t know”.
New
Cheezy
I am using Claude Remote Control for the first time this morning. AMAZING! I’m running one remote session on my iPad while running anothe...
New
ken-kost
Agreed; I just want to add that IMO Ash amplifies this even further. Especially since the dawn of usage rules. :cowboy_hat_face:
New
FedericoAlcantara
Hi guys, I’ve been running Qwen locally for the last two weeks using an opencode + Ollama + qwen3.6:35b-A3B setup with q4_k_m quantizati...
New

Other popular topics Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
Lets say I have map like this fetching from my database %{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => ...
New
saif
Hello everyone, Long time lurker first time poster here. I’ve recently begun working on Elixir full-time again! :raised_hands: It’s been...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement