Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paste special (json to a class) missing VS2019 - with all web dev tools installed

A very valuable tool is the ability to quickly grab json and create a class. Paste Special in previous versions of VS was a great feature, but I can't locate it in Visual Studio 2019.

According to this forum thread, you just need to add the ASP web development tools. I've installed everything, paste special nowhere to be found.

How/where do I go to enable this or what is the new alternative provided in Visual Studio 2019?

I've combed through all the options & individual components in Visual Studio Installer, and I've enabled just about everything where this might live. But it's still not showing up in menu.

like image 787
Chas Avatar asked May 09 '19 17:05

Chas


People also ask

How do I enable Paste Special in Visual Studio?

Developer Community After additional searching around, the "Paste Special" option is only visible once additional components are installed (For some reason). If anyone else comes across this, go back to the Visual Studio Installer -> Tick "ASP.NET and web development", and install that.


3 Answers

I met the same problems in here too with 2019 visual studio and found out how to fix it.

Go to Visual Studio Installer > Modify > Individual Components > Web development Tools

installer screenshot

like image 87
Ethan Nguyen Avatar answered Oct 19 '22 14:10

Ethan Nguyen


It should be under the Edit menu:

Edit -> Paste Special -> Paste JSON As Classes

If you've installed the ASP.NET tools and still don't see this, send feedback so the product team can investigate why.

like image 28
Jimmy Avatar answered Oct 19 '22 14:10

Jimmy


If you don't do it often, just use an online JSON to class converter

like image 27
tolsen64 Avatar answered Oct 19 '22 13:10

tolsen64