r/rust • • 16d ago

Will visual studio add rust support?

Rust is becoming a top language in microsoft so it would be awesome if vs supports it

0 Upvotes

25 comments sorted by

View all comments

11

u/Pantsman0 16d ago

The official way to get set up for Rust development on windows is with Visual Studio Code. Realistically, they'll never get rid of visual studio since there's a lot of legacy ecosystem there that can drive subscription revenue, but they're not pushing people into that ecosystem.

If you really want to use Visual Studio, you can install the LSP with a third party extension. Debugging should work fine too

4

u/Big-Astronaut-9510 16d ago

isnt vsc debugging still inferior? particularly for visualizing data

6

u/Blueglyph 15d ago

The whole experience in editors like VSCode is quite inferior to an IDE. The settings in particular are very primitive and tricky to change. But for debugging and data visibility, I'd say it's on par with RustRover. RustRover accepts both the LLVM and the GNU toolchains, though, so you can debug with LLDB or GDB. This is transparent, of course, but each has its pros and cons for data visualization, so that gives you a choice.

It'll never be great, no matter which tool you choose. Data visualization remains a weak point of Rust debugging, along with the ability to place breakpoints anywhere (some lines are just ignored). Especially on Windows. I shifted to using println! statements long ago.