Vscode stuff

It am getting crazy of vscode. The terminal is buggy, it formats my code while every possible format setting is off, it does not show structs in the outline, debugging (black magic) is not possible.

What I need is a tool for Zig. Not some tool where I get lost in the plethora of locat global semilocal settings for each possible language.

Is there a good ide instead of this one?

1 Like

Probably the closest to “native experience” would be flow – the author hangs around in here.

I use neovim, it suffices for my purposes. I also have a soft spot in my heart for Sublime, but have not used it in anger to write any Zig.

For the buggy terminal, if you are talking the terminal duplicating lines on resizing, I have been refuse to install any update since version 1.89 which is the last version without that crazy terminal bug. The lack of the copilot nonsense is another big plus.

The only drawback from my end is that I couldn’t use aws boto3, but that was the thing of the past because I no longer need it.

I use Helix, but if you are looking for a more IDE experience, Zed is really good it’s not dogshit slow like VScode which is another perk.

2 Likes

I’ve used Zed for writing Zig and was really happy with it. It’s not Electron so the performance is better.

Zed looks ok. Unfortunately I am (still) one of these who has installed the OS from the dark side.
“Available for macOS, Linux, and soon for Windows”

Everyone who writes code is 100% confident that their editor of choice is the only correct answer to this question, and anyone who disagrees is simply wrong, uninformed, has no clue what they are talking about, and probably is just some script-kiddie who took a free online 2-week JS bootcamp course.

That said, the answer you are looking for is Neovim. I too was once mistakenly a VSc*de user, and then I consumed the Kool-Aide, went through the pain of learning Vim motions, and am now a proud cult member evangelist for the only real editor in existence.

In all seriousness, it is well-suited for Zig without too much hassle whatsoever (beyond any initial configuration of the editor if you choose to do that from scratch). You will also be one of the cool-kids who get to boast and say “I use Neovim btw” at parties.

2 Likes

Neovim Kickstart is a great way to get most of the way to where you need to be, configuration-wise. Pretty much just have to drop zls on the command line and change a couple of lines in init.lua.

As for some propaganda promotional material, this Stack Overflow answer is what finally convinced me that learning the Vim language would be worth it. Which it was.

2 Likes