r/programming • • Nov 08 '21

Visual Studio 2022 now available

https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
212 Upvotes

55 comments sorted by

48

u/emotionalfescue Nov 08 '21

Visual Studio is very impressive tool that enhances programmer productivity. However, there are some annoyances that do not get better, and often are worse with each new release.

  1. Load times for VS.exe and project files in a memory-constrained environment. I'm seeing a lot of long delays with "Not responding".

  2. When opening a project file created under an older version of VS, you get nagged to upgrade the platform SDK and VC++ toolset versions. And it wants to create a new project file that is presumably only compatible with the new VS. If someone else on the team wants to use it, they'll have to upgrade their toolsets.

  3. There are tons of versions of the Windows platform SDK, none seemingly better than another, except by virtue of being newer. So you might need a half dozen or more platform SDK versions to accommodate all references from the project files of one enterprise application. These consume a nontrivial amount of disk space.

  4. VS doesn't make it easy to create a build tree that's separate from the source trees, when your project spans multiple directories and directory levels. (I'm sure it's possible, but it doesn't look like it's worth the effort). This kind of thing is straightforward to do in a Linux/Unix makefile environment.

7

u/Jwosty Nov 08 '21

I think #2 is not much of an issue anymore. If I recall correctly, the SDK-style projects don't force a particular version of VS; you can open them as long as you have a compatible SDK and IDE installed. Correct me if I'm wrong, but I think you should be able to open an SDK-style project for .NET 5 with either VS 2019 or VS 2022, and neither will nag you to migrate the project file.

24

u/douglasg14b Nov 08 '21 edited Nov 09 '21

To add to this list:

  1. When you leave VS open for any length of time, it starts slowing down more and more

  2. Intellisense is still brutally slow

  3. Quick actions (Ctrl+.) are beyond annoyingly slow, and even close & reopen, loading, and shift as you're trying to select stuff

  4. Syntax highlighting is slow (Sometimes taking several seconds, while vscode is instant)

    • Seriously on this one, wtf. 5k LOC file in vscode, there is highlighting pmuch instantly. 500LOC file in VS might take a second or two.

  5. Opening files is unreasonably slow as well on larger solutions, or if you have many VS instance sopen

2

u/Nocabnekat Nov 09 '21

Periodically hitting close all on the open file tabs helps the performance a ton for me.

2

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

1

u/[deleted] Nov 09 '21

I don’t understand how intellisense is so slow either. Jetbrains is far more accurate and just outright better in every conceivable way and isn’t slow like that.

I’ll grant that CLion takes a bit of boot up time, but it’s actually faster than Visual Studio and behaves faster as well.

Honestly, the VS team is just bad. The IDE is powerful as hell, but it’s SOOOO slow for no reason.

20

u/rpgFANATIC Nov 09 '21

Lol. Imagine thinking the entire team behind the massive, decades old project of Visual Studio is "bad" because a few features are slower than you want.

7

u/[deleted] Nov 09 '21

The entire IDE is slow.

6

u/VsPerfPm Nov 09 '21

Hey there,
I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

1

u/VsPerfPm Nov 09 '21

Hey there,
I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected]
and I will set up some time for us to chat

1

u/Kissaki0 Nov 09 '21

I don’t see lockups in .NET development at all.

Only on SQL Project SCMP operations, which take a long time, it can become unresponsive.

A while ago VS (2019 IIRC) introduced a different approach for extensions, so they would have to load asynchronously in order not to lock up VS. And it would warn you if the extensions did (were using the old mechanisms and were slow).

1

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

1

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

0

u/[deleted] Nov 09 '21

[deleted]

0

u/[deleted] Nov 09 '21

[deleted]

2

u/Dangerous-Charge-361 Nov 09 '21

Creating a new window is not yet supported. Seriously. You can only have one window open for your application:

lol, YIKES.

I'd rather code in WinForms than this new WinUI nightmare

3

u/life-is-a-loop Nov 09 '21

/r/unpopularopinion: WinForms gets the job done beautifully if all you need is a desktop app working as soon as possible. So, if the GUI doesn't have to look modern, WinForms is a respectable choice for an windows app in 2021.

2

u/erez27 Nov 09 '21

Sounds very futuristic

2

u/Kissaki0 Nov 09 '21

Because it’s called 2022?

3

u/erez27 Nov 09 '21

You got me

42

u/3131961357 Nov 08 '21

Now to wait 2 years for all the extensions to be updated

6

u/Valay_17 Nov 09 '21

A question to anyone who has updated from 2019 to 2022, do you still keep 2019 and can run both if you want or does 2019 upgrade to 2022?

11

u/cuatro04 Nov 09 '21

Yes you can have both at the same time

3

u/[deleted] Nov 10 '21

We've always been able to run different versions of VS side by side. I currently have 2005, 2008, 2013, 2015, 2017 and 2019 installed, as some customers have libraries or tools that only work with certain versions of Visual Studio (SQL Server Reporting Services is a major reason - a certain version of SSRS often requires a particular version of VS. The SQL Server and Visual Studio teams in Microsoft really need to work better together).

5

u/Valay_17 Nov 09 '21

Just to confirm, this is the stable release and not the beta right?

6

u/lolwutpear Nov 09 '21

Yes, they've had the Preview version out for a few months now.

20

u/[deleted] Nov 08 '21

Call me cynical, and I really hope I’m wrong, but I’m expecting Intellicode to not work very well.

31

u/TimeRemove Nov 08 '21

Intellicode was released in 2018, it works fine, but don't set your expectations too high. It isn't like Github's Copilot. It is just a much better Intellisense, nothing more. 2022 makes it a little better, but it is ultimately the same thing we've all been using for years.

2

u/KeyboardG Nov 09 '21

Intellicode was so much slower that I had to disable it. I know they improved the speed but its still bad.

4

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

10

u/anonveggy Nov 08 '21

The memory usage is kind of heavy but it's dead on most of the time.

3

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

-2

u/anonveggy Nov 09 '21

I will not associate my real identity to my anonymous reddit account to talk to a vs pm about something as mundane as couple of gigs worth of ram usage - there's plenty of ram to go around. Go back to developer community - plenty of people there waiting for feedback. Stop reading reddit at work.

9

u/JabNX Nov 08 '21

Honestly, I've been pretty satisfied with the feature that puts commonly used properties/methods on top of the completion list, and the new stuff in 2022 that tries to autocomplete the rest of your line also does pretty good guesses in general.

But yeah, it's not really transformative or anything, it's a nice bonus that doesn't get in your way and might occasionally help you.

24

u/[deleted] Nov 08 '21

Visual Studio 98 is still fastest release I can remember using. For me, it seems like every release has been marketed with the phrase improved performance while in reality its just been the opposite.

8

u/[deleted] Nov 08 '21

I feel like intellisense used to be worse than it is now.. and I love that improvement to the debugger they did a while back that let you move the instruction pointer backwards. But yeh, those are the only two things I can think of that they’ve improved since 98. Performance is pretty dreadful.

EDIT: Oh and they made search better too I guess.. ctrl-, etc.

3

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

2

u/[deleted] Nov 09 '21

Oh hey Kanika, thanks for reaching out.

I'm sick at the mo so you probably don't want to talk to me this second but I'll ping you once I'm in a position to chat.

Broadly, my comment relates to something I noticed that all the devs in my team are doing. We're (almost) all using two editors to edit/view the code in our repo. Most are using Visual Studio and VS Code and I'm using Visual Studio and Vim.

When I think about why we do this, it's because we often want to switch git branches and look at the code there quite quickly. With VS Code or Vim you can open the editor and be using the search features in a meaningful way within a couple of seconds. With Visual Studio, you can sometimes be waiting 45+ seconds or so for the project to open and be ready to use.

Essentially I find myself using Visual Studio if I know I'm going to be working on the code for a while, since I know intellisense and all that good stuff will help me actually write code and it'll be worth the wait. However, if I just want to read/browse/search code I'll usually reach for another editor first.

For reference, our product has 181 vcxproj files, 66 csproj files, 1500 cpp files, 996 cs files and so I can understand that VS has a lot of work to do when it opens compared a normal editor.

1

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

2

u/[deleted] Nov 09 '21

Hey. I don't have time for that, sorry, I'm busy waiting for Visual Studio to load my solutions.

Jokes aside, I don't have much more to add - if you compare the time to start the IDE, to load solutions and so on it should be apparant that they have increased over the years.

The only way this can be missed is if hardware upgrades compensate for the software performance degradation, something which I assume is very possible if you're a Microsoft employee.

I have Visual Studio 2013 and 2022 on the laptop I'm typing this on. VS2013 starts about twice as fast as 2022.

This decline of performance over the years can't be news to a PM working on the VS team?

1

u/douglasg14b Nov 08 '21

It works reasonably well for me, but it suggests really stupid things sometimes that are just compiler errors. You would think it's suggestions would follow the static typing we already have...

6

u/ramsees79 Nov 09 '21

It has a horrible memory leak, it went from using 1.5 gb of ram to 3.7 gb in 40 mins in my main project.

6

u/KillianDrake Nov 09 '21

it's 64-bit now, so your project really needs 3.7gb and before it was just trashing forever with infinite garbage collection in 2019.

3

u/ramsees79 Nov 09 '21

Almost 4gb for a project is not normal, this project only used 350mb of ram in VS 2012 before migrating.

1

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

1

u/VsPerfPm Nov 09 '21

Hey there,

I am Kanika I work as a PM on the Visual studio team focusing on improving performance of VS. I would love to talk to you and learn more about the issues you are facing. If you would be willing to talk to me please drop me a note at [email protected] and I will set up some time for us to chat

1

u/ThatOneArchUser Nov 09 '21

Does someone knows if driver development kit extension is also available for vs 2022?

-20

u/npmbad Nov 08 '21 edited Nov 09 '21

I'm happy I don't have to use this

edit: jesus fuck it's just a personal preference you insecure baboons

-7

u/NZ987654321 Nov 09 '21

It’s terrible, just so slow and full of bugs….

2

u/fraudulentdev_ Nov 10 '21

There is no way you even tried it. In term of performance alone this is by far the best iteration of VS i've used since pre 2008. For a regular workflow I have not noticed anything close to deserving the mention "full of bugs". Try upgrading your 2012 installation.

0

u/NZ987654321 Nov 10 '21

nah… it’s a turd

0

u/[deleted] Nov 08 '21

[deleted]

12

u/MC68328 Nov 08 '21

It was all downhill after Visual Studio 6.

4

u/hypocrisyhunter Nov 09 '21

That's optional in the installer.

3

u/chucker23n Nov 09 '21

I don’t think so. The multi-process architecture seems to always use Node.

0

u/[deleted] Nov 08 '21

[deleted]

2

u/Kissaki0 Nov 08 '21

I was hoping the Preview would upgrade to stable, but it updated to the next preview. I had to uninstall the preview and install the stable. :)

0

u/[deleted] Nov 09 '21

[deleted]

2

u/Kissaki0 Nov 09 '21

In a few ways, it is superior to vscode.

If you are looking for selection wrapping, use this Selection Wrapper extension.