ricksonoliveira

ricksonoliveira

AI Editors for Elixir

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 plugins and frameworks. And they all have their place and time.
But lately I have switched it over completely to AI based editors and the results I’m finding in terms of productivity specifically has saved me a ton amount of time on tasks, building features, debugging, etc.

The first I tried was cursor, which was awesome experience. I’ve literally started projects from nothing with just chatting with it and “almost” just copying and pasting it’s results with a little tweak.
The greatest thing I loved about cursor was it’s inline autocomplete. It really understands the “catch” of what you’re coding and almost always its completions are right or at least close to what you’re thinking.
It’s notable to mention that it’s based off VsCode so you can sync all the plugins and configs importing from it.
Finally, debugging with it is also makes it an amazing productive tool.

A few cons:
The cons about cursor I would say are mainly the pricing, which is 20 bucks monthly for the individual plan. I know its not much, but I assure you there are better prices for more complete tools out there.
Also, cursor is kind of “just” a code generator even though it’s really assertive. But it doesn’t have file system access (as far as I know) so it just basically helps you code faster.

A new world
After being in love with AI code editors, a co-worker friend of mine (which presented me to this new world in the first place) also showed me Windsurf made by Codeium.
Now, I’m not making any marketing here but this one is a real gem. I was really impressed with its chat. It’s almost a plug and play editor. For example you can simply tell it to develop a project based off your thoughts and it will not only return the results, but ask if you wanna apply the changes, and it will even setup database, run the deps and all the commands by itself and all you have to do is just sit and watch and agree or not as you want it to build the project for you.
Yesterday I literally caught myself arguing with it to migrate from my fly.io postgres database in prod for a project to a supabase db and it analyzed the code by itself and made the changes and now I have it up and running. That took less than 5 minutes.
It really analyzes the code for you, not only in the file you’re at, but all the funcitons, modules and files that flow will impact.
With that being said I don’t even have to mention how powerful that is in terms of debugging.
And it’s pricing is a few dolars less than cursor. :slight_smile:

Let’s be fair
To be fair when mentioning both editors. The autocomplete from Windsurf isn’t as great as cursor’s. I set it to autocomplete fast but even so it’s a bit slow and can be annoying to wait and see what it will suggest you.

What do you guys think? Is anyone else using these AI code editors? Enjoying them? Do you know a better one than the ones mentioned?

I would love to know :slight_smile: .
Cheers.

Most Liked

katafrakt

katafrakt

I used Windsurf a bit and I certainly agree that it’s better than Cursor. However, all these are too vscodish for me, so I still use Emacs as my daily driver. I just added Aider support to it in case I have a really tedious task with which AI can actually help me.

acrolink

acrolink

Your post is one day late :slightly_smiling_face: … should I cancel my recently purchased subscription to Cursor ?

ken-kost

ken-kost

Currently on cursor free version, I just bought tokens on OpenAI API and plugged that, don’t use code completion. But I will try windsurf if you say it’s good. :+1:

w0rd-driven

w0rd-driven

Cody is an exceptional plugin that I use in both VSCode and PHPStorm. The free plan is often more than enough as unlimited completions are perfect and 200 chats is quite a lot. The real powerhouse is that it uses Claude Sonnet 3.5, which has only improved since Cody was in beta earlier this year. I believe they also have a Neovim plugin if you’re into that. Cody also now supports Ollama models if you want to run them locally but I’ve yet to get the accuracy I get with Claude. JetBrains WebStorm is free for non-commercial use so this combo makes a decent vscode alternative. If it’s anything like phpstorm though, I’ve had more stability with vscode lately. Another big wildcard is the Elixir plugin at one point only worked for IntelliJ and not the specialized variants. IntelliJ community edition is a thing but wasn’t worth the hassle when I tried messing with it over a year ago.

As someone that’s used MS Copilot (Bing chat), I believe a branded gpt3.5 or 4 and Claude, I typically have way better results with Claude. The biggest gripe is it doesn’t hit websites so the knowledge has a cap. GitHub Copilot now has a free plan with 50 chats and 2000 completions but any completion cap can get met extremely quickly. When Cody had similar low caps after the beta, I had to turn that off because it would not fallback to normal intellisense/autocomplete when the limits were reached on vscode. I personally wouldn’t use Copilot alone, but mixing both for 250 chats would be worth exploring.

bradley

bradley

I’m a vscode user and I use GitHub copilot with sonnet 3.5. The new edits feature makes it competitive with cursor which is nice. I’d say my biggest challenge is getting it to understand the less known/bleeding edge elixir stuff. This is something I’m continually trying to work out.

Next I want to try out continue.dev or cline with vscode and the new MCP protocol. I think MCP might finally be the answer to getting quality elixir AI code gen but I haven’t fully figured it out yet. Some preliminary tests with the Claude desktop app and MCP are already promising.

MCP w/ search1api might fix this issue for you! I haven’t tried out the search API yet but I want to soon.

I love aider. I hope they add MCP support soon. I think that’ll make it much more powerful than it already is.

Where Next?

Popular in Dev Env & Tools Top

mveytsman
If you use vim, upgrade alchemist.vim to 2.8.0 as soon as possible!! There’s a bug that allows any website to take over your computer. ...
New
hauleth
Question as in the title. Are You using EditorConfig in your projects? poll
New
dimitarvp
Yeah, feels the same here. :confused: And I made a much bigger investment, the iMac Pro I got was $8000 at the time I bought it (2019). ...
New
AstonJ
I wasn’t aware ZSH has plugins until @Samjowen mentioned one in the Share an Elixir or dev-env tip a day thread! Oh My Zsh comes bundle...
New
AndyL
With this week’s release, ElixirLS bundles an experimental MCP Server. (see CHANGELOG) Highlights Added Call hierarchy provider imple...
New
AstonJ
What are you using for software dev? Can you share what you like/dislike about it? Would you recommend it to others? Related thread: Ho...
New
AstonJ
Following on from part of the discussion in the Digital Nomads & Frequent Travellers (Tips/Advice/Chat) thread, I thought it might be...
New
dogweather
First, the downsides. I periodically fire the AI. :smiling_face_with_tear: ^^ This was earlier today in Cursor AI, working with “Clau...
New
evnp
How do you all feel about the use of AI tools for building Elixir/Phoenix projects, with respect to these topics? Longform context below....
New
SpaceVim
I am author of SpaceVim, As you know SpaceVim is a vim config which provide layer feature. I want to improve the elixir layer in Space...
New

Other popular topics Top

belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1140 51847 244
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
977 41022 311
New
vonH
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 45766 226
New
malloryerik
Hi, this is for people who, like me, have had some friction using .html.heex templates in VSCode. The solution seems to be, in a hyphena...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 27727 240
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New

We're in Beta

About us Mission Statement