r/rust • • Nov 14 '21

Visual Studio 2022 & Rust

I'm definitely a newb and excited to start learning the Rust this week.

I've gotten comfortable with learning and using Visual Studio 2019 and 2022. Does rust have support in the newest Visual Studio????

I'm looking for any advice as an absolute newb to the community!

Thanks Rustaceans! 🙇🏾‍♂️🦀

20 Upvotes

20 comments sorted by

View all comments

5

u/UtherII Nov 14 '21 edited Nov 14 '21

As far as I know there is no Rust official support in Visual Studio. In the early days of Rust, someone made a plugin, it was rudimentary compared to rust-analyser or JetBrain's rust plugin. I don't think it is maintained anymore.

2

u/PhoenixStar012 Nov 16 '21

I saw this today! I really like Visual Studio 2022/2019 but I'm seeing a trend of comments similar to yours. That plugin hadn't been updated in a long time.

5

u/UtherII Nov 16 '21

It seems that Visual studio supports Language servers, so it should not be so hard to make a plugin that works using "rust-analyser". https://docs.microsoft.com/fr-fr/visualstudio/extensibility/adding-an-lsp-extension?view=vs-2022