Ask HN: Alternative to VS Code?

5 points · linkdd · 21 hours ago

I am on Windows 11, with WSL2. I have been a user of VS Code for a few years. And I was quite happy with it. I have yet to find another editor with the same level of integration with the languages I work with.

But since the last few weeks, I noticed a change of behavior. The VS Code Remote Server in the WSL starts to eat all the memory. I used to limit my WSL to 4GB of memory, I increased it to 8GB, and it still fills it up, and the swap, causing a huge disk load, making the whole computer extra slow, and the VS Code window becomes unresponsive. Often I either have to kill VS Code, sometimes the WSL itself.

It's so bad it became unusable. And honestly, 8GB for an editor? This is a joke.

I tried neovim, but the days when I enjoyed a vim-based setup are long gone, and honestly the integration with LSP servers is poor at best.

AFAIK, Sublime Text has no WSL integration.

Do you have any recommendations?


22 comments
sky2224 · 1 hours ago
I did a cursory search of this, but it looks like you might be able to get Notepad++ to do what you're looking for. It's certainly not an out of the box experience, but it might be something.

https://unix.stackexchange.com/a/600508

igbanam · 1 hours ago
Recommendations, use a flavour / distro of NeoVim.

I use Vim because I enjoy fitting Vim to how I think. But since the love story of Vim-based setups are long gone for you, I'd recommend picking up one of these new distros for Neovim — there are not as many i know about in pure Vim.

I've heard good things about Lazy.nvim and Astro.nvim.

armchairhacker · 18 hours ago
Seconding IntelliJ. It's not just an IDE for Java: the ultimate edition has everything from GoLand + RustRover + WebStorm + PyCharm (see https://www.jetbrains.com/help/idea/discover-intellij-idea.h... ; it doesn't supersede CLion (C++), AppCode (Swift / ObjC), and Rider (C#)). And it has jump to definition, see documentation, etc. IMO it has more quality-of-life features and they are are faster and fail less than VSCode's.

The main downside of IntelliJ is that it can be memory-intensive and slow, although perhaps not as much as your VSCode. Anecdotally, performance has been fine for me on an M1 Macbook Air, and 4GB more than enough memory, but my projects are probably smaller than yours.

Another option is Zed (https://zed.dev/). Being very new, I doubt it has all of VSCode's features. But it does allegedly work with 100+ languages, and it definitely has jump to definition and view signature (https://zed.dev/features#navigation). Zed should be particularly fast and efficient, and being new will probably gain missing features faster than the others.

Show replies

marshughes · 20 hours ago
First of all, you can try to update VS Code to the latest version. Sometimes, memory problems may be caused by bugs in older versions, and new versions often fix these issues. You can also check the installed VS Code extensions. Some extensions may have memory leaks. You can try to disable some non - essential extensions and observe whether the memory usage improves. In addition, regarding the WSL memory settings, you can further optimize the configuration in the .wslconfig file, for example, adjust parameters like pageReporting to better manage memory allocation. For alternative editors, you can consider IntelliJ IDEA. It has good support for a variety of programming languages and has specific configuration options for WSL, which can run well in the WSL environment. Although it is an IDE, if you are used to the rich features of VS Code, the feature set of IDEA may also better meet your needs. Did you encounter any difficulties when trying the above optimization methods for VS Code?

Show replies

stefanos82 · 3 hours ago
> I tried neovim, but the days when I enjoyed a vim-based setup are long gone, and honestly the integration with LSP servers is poor at best.

I use Vim, not neovim, and I use coc.nvim; it supports LSP servers just fine, I'm quite pleased!