On windows I use VSCode + RLS, on linux I use neovim + ALE. Both work very well. I feel like I have a lot more control over what is happening in Vim and it’s more performant, but VSCode is definitely a fine choice.
VSCode + RLS + Vim emulation plugin
CLion + Rust Plugin. I love the JetBrains products, because they have a lot of features I use every day, but are still very configurable; plus they work on any platform.
VSCode + rust-analyzer (RLS 2.0). It doesn’t support traits so miss some intellisense, but is much more responsive and has way more IDE functionality than current RLS.
Also, I recommend actually clicking the vote button at the top People are commenting what they use, but not voting so the numbers aren’t reflecting what the thread is saying
sublime text 3 with the following plugins:
- Rust Enhanced
- LSP (links to RLS)
Find that VS Code isn’t fast enough for doing a lot of code replacements.
I’m currently using kakoune + kak-lsp
I used sublime text and CLion before.
Before that: sublimetext
Before that: intellij + rust plugin
I use VSCode and rust-analyzer too.
First of all because VSCode is an excellent general purpose IDE. To start with the downsides, it’s sometime not super responsive, but that’s pretty much it. There are plugins for so many things, and its included central version control support is really nice to use. It also supports great levels of appearance customization (I use monokai with it, but many themes exist).
On rust-analyzer vs RLS: while the RLS generally has better support for language features and is more consistent across machines, rust-analyzer is the closest thing one can get to a full IDE experience. When I switched from the RLS to ra, I wasn’t even aware of how many features VSCode offered to language servers, and it has generally been more useful and most importantly less CPU intensive.
How have you set up rust-analyzer? Installed directly as a plugin or do you have to run your own builds currently?
I run my own builds, rust-analyzer have it automated it’s really easy to do.
Intellij IDEA makes working with rust very snappy. It also feels pretty integrated, and easy to configure, and it has basically everything that vscode has, but with a few big-ide features (Type annotation, catches more errors faster, etc.). It’s still not the C#/Visual Studio combo that most people dream of, but it’s still pretty good at doing what it does.
Although not an IDE, I use Sublime Text 3. Instead of the IDE auto-suggestions, I use the TabNine plugin, which is often faster and more efficient than Jetbrains (Clion) suggestions. Check it out.
I use IntelliJ + Rust Plugin.
For note, IntelliJ and Clion are the same thing, it’s the backing IntelliJ engine with some pre-included plugins, clion includes the C++ ones. Any plugin that works on one should work on any other IntelliJ distribution (clion or others). Thus the IntelliJ and Clion numbers should be combined. Perhaps just as “Rust Plugin for IntelliJ-based IDE’s”.
I use Atom with the IDE-Rust plugin in combination with Git Bash, but I’m thinking about checking out IntelliJ instead.
I switched to Intellij’s Rust Plugin a bit over a month ago, never looking back. The Language Server is just so limited and rather useless in comparison to an actual parsing engine with more features that the IntelliJ’s Rust Plugin uses.
Don’t know if atom’s rust plugin has these abilities yet, but things I can’t really live without anymore (especially as a relative Rust newbie) that IntelliJ has that atom didn’t last I tried it:
- See the types of things inline!
- See macro expansions!
- Much Faster once the compile and cache is complete! Plus just overhauling code, templates, highlighting is so much better, etc…
Vscode is really nice, its free and open source, and it is highly customisable.
There is a Rust autocomplete addon you can install onto vscode but yeah it is quite nice.
For rust usage VSCode doesn’t seem super customisable or quite nice though? It uses RLS in the back-end, which is extremely lacking when it comes to IDE’s. In general for Rust VSCode lacks these compared to IntelliJ Rust just as one non-RLS example, and no doubt I’m missing a lot, but off the top of my head:
- Type hinting
- Inline hinting
- Significantly better debugging interface and Profiler (CLion’s debugger/profiler with rust is awesome, if using the base intellij the only thing it lacks is debugging/profiling support sadly)
- A whole ton of refactoring options.
- Faster (still not as-you-type fast, but that’s just because the rust compiler isn’t OCaml-compiler-fast)
- Macro expansion (can see how a macro gets expanded, surprisingly useful and used a lot),
- Single-click fixing of a lot of source code issue.
- Among just the whole host of things that makes a better IDE like clion better than an editor like vscode.
Sorry I meant like vscode text editor is very customisable in terms of aesthetics.
Wow that is quite a bit of missing features. Perhpas I should install IntelliJ. Is it free and open source though and are you able to customise its themes?
CLion is neither free nor opensource. It is not super expensive for individual developers, though you will want to get a subscription (pay every month or year), which is a turn-off for people who don’t have the money or don’t use it as a professional (earn money with it).
While I have no comparison to VSCode (had JetBrains products before, never liked VSCode compared to them), you can do basic theming and re-order UI elements to your liking. Everything except the editor can be tabbed, so that you can have many tools, but hide them when you don’t need them, and get back to them quickly. Especially useful for structure, project, terminal, versioning and debug (my standard tools)
I’d recommend CLion if you can get a hold of it (free for students and all that), that way you get debugger and profiling support and all too. But yes everything else works fine in normal free intellij community. It’s quite themeable as well yes, both in the source editors (can even have different themes per language if you want) and overall GUI, though no major refactoring of the GUI itself (it’s made in a combination of C++ and Java for speed reasons, no electron heavy’ness).
Yeah there are lots of ways to get clion free as well, and it’s worth it. I get it free since I’m a teacher. ^.^
But IntelliJ Community is free and everything about the rust plugin works perfect in it except the debugger and profiler.
Tons of ways to get it free: https://www.jetbrains.com/clion/buy/#discounts
Students/Teachers, Open Source (like fully open) projects, bootcamps, other services, etc…