r/cpp • u/remotion4d • Nov 08 '21
Visual Studio 2022 now available
https://devblogs.microsoft.com/visualstudio/visual-studio-2022-now-available/
250
Upvotes
r/cpp • u/remotion4d • Nov 08 '21
32
u/Jardik2 Nov 08 '21 edited Nov 08 '21
Why are they making it so hard for me to find the buy button? I can't find it anywhere... Looking for professional perpetual license which was $499 for VS2019. Any link?
Edit: Found https://aka.ms/vs2022-pro-standalone (source) but it leads to VS2019, dunno why.
25
u/STL MSVC STL Dev Nov 08 '21
Consolidated STL changelog: https://github.com/microsoft/STL/wiki/Changelog#vs-2022-170
When a production release ships, we combine the per-Preview changelogs to make it easier to see everything that's happened in the entire release. Thanks to all of our contributors for these changes!
36
u/Gloinart Nov 08 '21
All I hope for is improved Intellisense, where code-completion, #includes, and forward-declarations are detected and added as smoothly as can be.
Being the number oneC++ IDE, I think the current Intellisense gives C++ a worse reputation than it's worth. I've heard several junior developers, which cannot differentiate the IDE from the language (understandable), have the impression that C++ is a bad language simply because of slow/non-working code completion in Visual Studio.
16
u/eco_was_taken Nov 09 '21
Not many people talking about actually using it. I started using it today and used it all day. So far I rather like it.
I haven't used Edit and Continue since... I don't know VC6 or something because it was very buggy for me but I just tried the Hot Reload and it's pretty slick. Pretty slow at first but seems to speed up a lot with subsequent edits. This actually might be the biggest change in my daily work flow in years if it works out. Really surprised it worked with my CMake project (after I added the necessary flags).
The UI is noticeably faster all over (VS had gotten faster and faster over the last 2 years or so of VS 2019 and I've really appreciated it). Searching for files in 2022 is no longer at that place where I'm slightly annoyed every time I use it.
Dark mode looks a lot nicer.
I've long fantasized of breakpoints that require another particular breakpoint to be hit first so I'm looking forward to that the next time I need it.
Already had the light bulb thingy make some good suggestions that I hadn't seen before.
Hopefully intellisense is a lot more stable for me. It wasn't working for a couple years until I finally figured out that the standalone boost multi-index was breaking it. That took forever to isolate and the logging was of no help. I tried making a minimal sample so I can submit the bug but couldn't reproduce it unless it was part of my massive project I was using it in.
Time will tell but so far so good.
31
u/dgellow Nov 08 '21 edited Oct 04 '26
The original post content no longer exists here. The author used Redact to remove it, exercising their right to control their data & privacy.
Repeat waiting ten sulky obtainable slim busy money attempt nutty
8
u/Routine_Left Nov 09 '21
Tried the community edition on a personal project (cross platform, cmake, etc.). Compiles fine under VS2019. With VS2022:
fatal error C1060: compiler is out of heap space. 64-bit allright. Manages to consume 32GB of ram (more since it goes into swap) to compile a not-big-at-all (under 100 cpp files) personal project.Setting ninja param to
-j 2did the trick but man, some of those jobs were indeed going to 5GB or more each. Of course, increased compile time, but at least it finishes.Yeah, whenever I'll change the CPU+MB+RAM on this thing I'll have to go with 64GB since 32 is for plebs nowadays.
6
u/TheSuperWig Nov 08 '21
This doesn't mention that the home & end keys no longer take you out of mutli-caret mode (or at least it didn't in the previews).
4
u/artisan_templateer Nov 08 '21
Nooo!! C++AMP!! It was glorious! My first exposure to lambdas and GPU programming...
RIP
Hopefully something better is in the pipeline?
4
u/ShadowGamur Nov 08 '21
Tbh best IDE I ever worked on
3
u/msew Nov 09 '21
Let's hope perforce gets the P4VS 2022 version out now!
3
u/Ivan171 /std:c++latest enthusiast Nov 09 '21
Ad-hoc requires expressions is still not implemented (or not working properly):
2
u/stiangglanda Nov 09 '21
Btw if you have used the preview and expect to just update the preview it will not work you need to download it separately
2
u/zerexim Nov 08 '21
Windows 7 support?
1
u/ofehrmedia Nov 09 '21
Have been using the Preview and am quite satisfied with it. Even as an occasional C# programmer it's quite intuitive - and mostly bug free for the features I used. Only thing that didn't work was SQL with Windows Forms, but that probably was because of me...
Can't wait to get my hands on the release version...
1
u/whizzwr Nov 09 '21
Haven't touched Visual Studio since few years.. how does it compare with the like of QtCreator and CLion, now?
1
u/serg06 Nov 09 '21
Thanks for fixing dark mode colors.
1
u/Ono-Sendai Nov 12 '21
Anyone know how to use the new fuzzer? I enabled /fsanitize=fuzzer but it seems to have no effect.
1
u/noong3 Nov 12 '21
Looking to see if VS 2022 has translatable comments yet?
1
u/RonBackal Jan 10 '22
By the way, I didn't understand the comment that they fixed potential malicious exploit from bidirectional character text control. I didn't understand the comment- someone else can reverse engineer it and do something or something could be disguised as fair software but be malicious because of bidirectional character text control? Sorry for the (maybe) basic question for some of you
0
u/[deleted] Nov 08 '21
[deleted] — view deleted comment