Did you know Visual Studio can paste a JSON text as a C# class?

Read more about it here:
https://learn.microsoft.com/en-us/visualstudio/ide/reference/paste-json-xml?view=vs-2022

(Thanks to Justim Odendaal for the tip)

#csharp #VisualStudio #dotnet

Paste JSON or XML as classes - Visual Studio (Windows)

Learn how to copy any JSON or XML text from the clipboard and then paste it as .NET classes into C# or Visual Basic code.

@hassanhabib Done just yesterday 🙃 This feature is indeed extremely helpful.
@MiSeeger I have been doing this for 20+ years and Visual Studio continues to surprise me - great tool!
@hassanhabib Yesterday I switched to VS 2022 preview version to check out the newly released features. There I have no ReSharper installed 🙈 and I must confess: They're really getting better.
@hassanhabib Thanks! Will definitely start using this.

@hassanhabib

I had no idea and i've been using VS since 2010. Awesome tip! Thank you!