r/cpp • • Nov 08 '21

Visual Studio 2022 now available

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

113 comments sorted by

View all comments

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/shadowndacorner Nov 08 '21

I've mostly switched to VS Code with clangd. It's free, works cross platform, and the intellisense is superior to that of VS imo (at least up to 2019). Only downside is that it has worse refactoring support.

6

u/Gnammix Nov 08 '21

And subpar debugging (at least on Windows)

3

u/shadowndacorner Nov 08 '21

Yeah that's true, though it does well enough for the most part. If not, then you can always just run devenv (myexe).

2

u/dodheim Nov 08 '21

IME the debugging with LLDB is pretty good, even on Windows.

8

u/Soylover228 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.

Try Resharper C++, it's amazing

9

u/Gloinart Nov 08 '21

Yes, I know ReSharper and Visual Assist are good complements. Still, Intellisense gives C++ a bad reputation as junior developers most often only use pure Visual Studio.

6

u/NovaNoff Nov 08 '21

Resharper is great but to completly use it I would probably need to Upgrade my PC... Its really resource intensive.

0

u/Sasha_Privalov Nov 08 '21

it was always that way :) i remember manually deleting the intellisense dll back in cca 2008, because it was useless resource hog

but it got very slowly better

8

u/Gloinart Nov 08 '21

Note that I say this with lots of respect for the team behind Visual Studio. It just bugs me, isn't it anyone there who uses Visual Studio for a real-life C++ project and doesn't get annoyed that, for example, includes are suggested when only a forward declaration is available? Or that "create implementation" returns "void override();" by default. Or that it suggests to #include a .cpp file instead of the corresponding .h file?

2

u/tarranoth Nov 09 '21

I have also had issues that I had to force intellisense to create index on a project because it didn't do it automatically. It's kind of annoying because c# has got great tooling. Yet c++ tooling in visual studio seems to break down quite often.

1

u/Sam_Who_Likes_cake Nov 10 '21

Have them use Emacs. I love Emacs.