How is that related to visual studio though? Those aren’t related, and if you want to support cross platform you have no choice (even if you use VS), MSVC is windows only.
You can spend five minutes setting Visual Studio up (and then you'll have an editor, a compiler, a build system, a debugger, a profiler, etc.), or a week trying to puzzle out how to get the open source equivalent going.
And while I should really look into cmake, so far (28 years and counting) I've been making do with a few makefiles and rudimentary knowledge of vi for our linux builds. There is no need to use the same compiler, build system, or anything really, on both Windows and Linux.
If you are at the stage of learning cpp, it makes a huge difference, if you first have to spend hours and hours of setting up your tool chain, IDE and learning cmake (which version of it?) or if you install a (hughe) IDE and have the whole thing running. And if you want to use cmake (which would also recommend) you can use that from within VS just fine.
WHile I dont necessarily think that vibecoding is the way, making AI setup your build system in a controlled manner is nice. And before AI yes, that was pain asf but now with it it's doable.
Yeah everyone recommends VSCode but that always seems to throw errors for anything I try to do in terms of building. Visual Studio indeed just works with little to no fuss on my end of things.
It used to work in the past. My experience with few relatively recent versions was so horrible (damn slow and glitches are everywhere), that I went to VSCode and didn't look back. It has at least basics working
I've stayed with 2022 because somehow I've still got an Enterprise licence, even though the student portal says it's no longer a thing. I don't want to risk upgrading to 2026 and dropping to Community.
No it's not. I worked on the VC++ team (> 10 years ago now) and we never put any significant amount of work into it. To the extent that something new got added it was because Richard Shupak, the guy who originally created the PDB format, treated the debugger and linker as one of his many hobbies. He left in 2012 and died recently. A true 10x guy, he knew everything about everything.
I'm glad you like it. It's a very friendly debugger which is an important property when learning curve is an obstacle to many developers using a debugger at all. But it is absolutely not an engineering miracle.
It sure is a miracle that it all works together at all. Debugger, profiler with ETW trace viewer and Io and memory profiling, graphics debugger, VCS integration, extension ecosystem, cmake integration, and god knows how much more. The amount of things in VS is insane. I am not close to using all of it.
Well maybe not if you look from within. But as a user that's not really important. I just sometimes wish I wouldn't have to switch to windbg for certain cases.
Been writing a project using modules to try them out, adapt the newest stuff, it’s been working ish but there’s certainly a few snags, many are seemingly just the compiler or ide randomly not recognizing module files without a reboot.
Trust me, I know! I own several libraries and regularly write new visualizers.
I've found that they are also cross compatible with VSCode as long as you're debugging with vsdbg. I spent quite a while recently trying to post-process the natvis output using hediet's gui visualizers; e.g. tables for linear algebra objects like matrices... Unfortunately it seems like the support isn't quite there yet.
The one downside to natvis I've found is that there are unmodifiable execution limits. Understandable that we shouldn't be performing intense post-processing on every single object, but the limits can occasionally get in the way.
I was about to write that. But somehow I barely see those. Also gdb and lldb have different APIs. And you have to write python. I think they chose the fundamentally wrong approach.
Some fancy stuff like multiprocess debugging, multi-thread debugging, thread stack views, memory views, custom formatting of data structures and even fancier stuff like backwards debugging but i never used this one before.
The main thing that sets it apart from other GUI debuggers is that it actually works - no weird IPC hangs, no crashes, no sudden missing visualizations.
GDB is rock solid - on the command line. Every GUI for it is clunky, slow, and unstable.
The memory view is fantastic, performance profiling integrated, GPU threads, remote debugging, great info in the call stack, disassembly.... all in one obvious place and trivial to find...not "easy to find" but absolutely mindless to find. When you forget where to look, it's all in "debug/windows".
Fast compile times, multi-language support (C sharp for example), integration with 3rd party tools (not just usable in thos environments .. totally integrated).
For what it's worth, for the project I'm currently working on (which is approximately 7.5MB of modern C++ (with heavy template usage) + 10.3MB C):
MSVC full debug build: ~44 secs
Clang full debug build: ~41 secs
MSVC full optimized build: ~1:07 minutes
Clang full optimized build: ~1:02 minutes
Which means that MSVC takes ~7-8% more time.
(However, Clang miscompiles my code, so its unusable. :P Has been doing that in all the versions I checked. I tried to create a minimal reproduction but failed. Don't have more time to fiddle with it for now.)
Well that's one thing. What I meant is that you could use the same build system. So the build time will be the same. But yes. MSVC's cl.exe is slow and uses more memory than clang. Same with link.exe.
It's usually a good idea to go looking for one from a university. They don't tend to be particularly comprehensive, but it's enough information to get you started.
For one it doesnt segfault or corrupt memory in multithreaded processes like gdb. Its impossible to debug with gdb without gdb itself falling apart. I'd need to use gdb for gdb itself.
The only debuggers that beat VS experience beyond C++, are Delphi, Java IDEs (Netbeans, Eclipse and InteliJ), and well VS as well for .NET across all the official C#, F#, VB and C++/CLI, as mainstream programming languages.
Even better are Smalltalk (Squeak, Pharo, Cincom) and Common Lisp IDEs like Allegro and LispWorks, however they are unfortunely rather niche.
I often want to pull my hair out using IntelliJ's debugger. Single-stepping over methods is so damn slow (since it seems to be interpreting) that it often is faster to restart debugging than waiting. Also support for changing the execution pointer seems spotty.
Yeah I think that the main issue for me is that I like command line debuggers more than the graphical ones they are amazing once you stop trying to use them like a graphical debugger. And I am saying that after a full morning of debugging with VS.
Yeah.. Solves is a very strong word.. Might make it easier, maybe.. But you don't have to fuck around a lot before stuff gets weird
I kind of get why visual studio has thos weird lib and include paths, but if you just want to start writing some code with this awesome library you discovered, there's a lot of ceremony before you get into it, with or without cmake
The Visual Studio CMake integration is NOT stellar —too often I have to reload the IDE because it’s inexplicably stopped being able to recognise the structure of my CMake projects. It's a great convenience that it's now built-in to the IDE, but it is not stellar!
Huh the CMake integration is so bad in VS that I am constantly switching between the integration and the old-fashioned way. Even VSCode has better CMake support...
I've always been working on Linux and the few times I had to work with people using visual studio, it was quite annoying and the Linux builds were not working well. That was a long time ago though.
On Linux you can just do configure, make and make install.. As I can see, the benefit is that it makes it very easy to target the current system, but cross-compilation is suddenly its own study
On visual studio, targeting a different architecture seems to be a part of the design
Visual Studio is the best IDE on Windows. It has also had free editions with next to no limitations for over twenty years. It's also easy to use Visual Studio on multiplatform projects.
Because it's very good for debugging. Haven't seen something similar on linux, though I work at a (mostly) microsoft shop, so maybe I'm not up to date.
Many people mention debugger as "the best" here. I really want to know what features exactly make you think so? I have been using visual studio until 2021 and I cant remember any debugger feature there that wouldnt exist in vscode or even as a plugin for vim (conditional breakpoints, data breakpoints, you name it).
I recently started using vim and it doesn't "just work" as VS, similar with vs code. I'll not give up, but trading a bunch of PC resources for not having to worry about anything is quite a decent deal.
Because the Visual Studio Debugger is widely considered to be the absolute king of C++ debuggers. But you can also try out JetBrains' CLion, if you like, which seamlessly embeds both GDB and LLDB.
CLion was so-so for me.. but if you already have a jetbrains license I could see it being an alternative, especially on mac. (Fuck XCode, the worst IDE ever made and I will die on that hill)
when i was on windows, i did use full fat vs for a very long time purely because it's better than every other IDE on the platform. it was only when i wanted to start building things which are multi-platform and use CMake build systems that i decided the friction wasn't worth it. switched to vscode with clangd + lldb + cmake and it worked very well too. i'd argue clangd is better than whatever the language server that comes with vs by default is. HOWEVER the debugger and debugging utilities on vs are absolutely fantastic.
alternatives like code::blocks, eclipse, etc. just aren't in the same league. clion gets pretty close but costs money (unless you have a student license). i did try clion again recently but it's dog slow these days for some reason - not that it was ever particularly quick.
anyway. i've been on linux for a few years now and the vscode, clangd, lldb & cmake stack has been keeping me pretty content. code-compile-debug experience is very nice.
Clion no longer costs money even with out being a student as long as you are using it for non commercial uses, https://blog.jetbrains.com/clion/2025/05/clion-is-now-free-for-non-commercial-use/. Clion can be slow, but for me that was always against other lightweight IDEs that usually did less stuff, Visual studio has consistently been slower, harder to use and buggier than clion on Windows (at least for me). I also use full cmake + presets + VCPKG + clang tools setup though, so maybe people stuck on msbuild with out package management don't have these issues
Same story. I used Visual Studio, then switched to VS Code, and debugging became a nightmare. Eventually, I moved to nvim and only opened VS Code when I needed to debug. Then I realized there are nvim plugins for debugging, and it stopped being an issue altogether.
Because VisualStudio comes with MSVC SDK, that contains all necessary toolchains and binaries to start developing in C++. However, you don't have to download the whole IDE, you can only download this SDK separately
Im using it with ReSharper and somehow it’s more flexible than a regular CLion. Also just enourmous amount of instruments that just works. I have some minor issues with CLion and VSC all the time unlike in VS + R++.
And this is by design. MS didn't make Visual Studio amazing because they wanted people to buy Visual Studio, they made it amazing because they wanted 3rd parties who had an idea of an application to choose Windows as the platform.
Back in the 90's I was shaking my head at the DOJ suing MS over making it hard to develop 3rd party apps. They literally were doing the opposite. Of all the platforms back then, no one was helping our 3rd party devs more than MS.
I'm not an MS fanboy, I agree some shitty stuff was done by MS. But that was not one of them.
That's almost prehistory now. Was great at the time. And Zortech of course. Although Zortech was more the best compiler than an IDE - but the C++ support was unparalleled at that point.
Easy to use, used it for a couple decades in the corporate environment so I am used to it, has all the tools I need in one spot, flexible for different coding languages, second to none for multi-user code bases, tight integration with version control - the list just goes on.
Don't get me wrong, for personal projects and smaller projects I don't use it all the time - I use Notepad++ a LOT combined with command line compilation for tighter control. But other IDEs/Tools like VS Code and Eclipse feel like hokey wanna be afterthoughts rather than usable environments.
Watch the new releassed documentary about vscode then you will see they helped massively with innovation and Standardisation for the whole ide and editor space and devs have it easier now for the most part.
Because it is the official tooling of the OS vendor, and I always go with the official OS tools.
Additionally, it has great debugging tools, REPL for the .NET languages, hot code reloading for .NET and C++, incremental compilation and linking for C++, recently added support for debugging release builds, the integrated code analysis tooling and memory debugging tools, the hardned runtime since MFC days, and being the OS vendor tooling, the integration point for all commercial SDKs that target Windows from third parties.
Also since I am mostly doing .NET on Windows, all its designers, and C++/CLI as an easier way to integrate with C++ SDKs on Windows for .NET binding libraries.
it's the best IDE on Windows IMO, especially if you are focusing on Windows software, i hate Windows but VS hard to compare, in some way I wish there's "VS for Linux" and not just MonoDevelop or something from JetBrains
A lot of it for me is historical. In the past if you were writing Windows desktop software to Win32 you would be crazy to not use Visual Studio (or Visual C++ back in the day), especially if you needed C# too. Now there is CLion and Rider but those used to not exist.
So I got used to it as a Windows desktop developer in the 1990s and now I stick with it because it works and I've been using it for 30 years even though I use its CMake integration now instead of .sln files as I am no longer writing specifically Windows applications. CMake integration is pretty good in VS 2026; Qt integration works easily when using CMake, without any plugin or a lot of set up, so I have no reason to switch.
A lot of reasons, many of which are historical. Imo it essentially boils down to inertia at this point. A lot of businesses have had VS licenses for decades and all of their onboarding materials, extensions, etc are built around it. It used to have the best intellisense around, and has some of the best debugging tools available on Windows. And a lot of people like using first party tooling. It also does things a bit differently than pretty much everyone else, so it's harder for people trained specifically on VS to transition to other environments.
However, I don't think it's kept up with open source alternatives. Clangd is miles better than it's intellisense atp, visual studio itself has gotten extremely slow and bloated (even compared to how it used to be), MSVC is behind both GCC and Clang in pretty much all areas afaik... The only place VS is arguably still best in class on Windows is batteries-included debugging, but even that is a hell of a lot closer than it used to be.
Imo there's not much reason to use Microsoft's stack on Windows anymore, beyond keeping VS installed for debugging when other tools aren't doing the job.
MSVC has full support for the C++ 23, the latest published standard. It has less support for C++ 26 features, but that's not standardised yet, so any support would be experimental at this point (although previously they did quite a lot of that).
Msvc only got proper c++23 support this year prior to like February it was a very partially implemented buggy mess because MS shifted their engineering priorities. It went from 6 months to a year before issues even got acknowledged no matter how small to issues getting fixed in 6 days.
Unfortunely, however the other big sponsors for clang and GCC aren't rushing into C++ support as well.
All the newer goodies in clang and GCC for recent C++ versions past C++23, we have to thank mostly to volunteers.
I bet very little of ISO C++ compliance work has been upstreamed by all companies that replaced by proprietary compilers with clang forks, for example, other than LLVM backend changes for their CPUs.
It feels the industry at large, is happy enough to keep LLVM going with whatver is currently available in clang, to compile LLVM, alongside whatever they are usign LLVM for, as compiler infrastructure.
Similarly for GCC.
Which goes into the direction that I think, most companies will consider C++23, or C++26 given the reflection support, as good enough for their existing C++ projects, and not really caring that much of whatever comes next.
Even the recent C++ documentary acknowledges near the end that outside Bloomberg, not many companies are sponsoring further language development.
Depends if one actually wants to do Windows development, with possible commercial SDKs, or port FOSS stuff into Windows.
As for C++ versions past C++20, at work we're still mostly C++17 for the native library integrations that we do for the managed languages we work with, given the portability requirements across various target platforms, thus ISO C++ vlatest is only for hobby coding on my case, and I am not having much of it in recent months anyway.
CLion is not free for commercial use and while it's really not that expensive, that's a "matter of principle" barrier most won't cross.
I think JetBrains has great tools and I absolutely prefer using Rider over VS for Unreal Engine development. IntelliJ was pretty decent when I used it years ago for Android development. However, most folks will just not pay.
There are alternatives that come with compromises. I guess further qualification would help. Are you in need of:
compiler
IDE
UI Framework
..and in a related question.. Are you interested in targeting a service, a Console app, or a Windows UI application?
Personally I hate the Visual Studio IDE. It's ancient, big, slow, and has a lot of buried bones, but it's also very powerful if you know what you're doing. I dislike VS Code even more. Windows used to have a handful of reasonably priced C++ compilers and IDEs but they've mostly died off.
LLVM (Clang) needs either Visual Studio or fake Linux or...
C++ Builder from Embarcadero (formerly Borland) has a couple of decent UI frameworks (though none of which are fully x-platform) and uses an older Clang derivative but costs thousands of dollars, is never up-to-date with the latest clang, and the last I used it and had a license it was riddled with bizarre linker errors
Watcom C++ was once awesome and is now gone
IBM C++ was once a thing and now gone from Windows (anybody here remember Visual Age C++)
Intel C++ leverages the VS ide
g++ has the same MSYS (fake linux) requirement as Clang/LLVM
I guess there's QT for Windows too, but that too costs thousands of dollars if you intend on distributing what you build.
QT Designer is GPL. That just means no repurposing the QT designer source code and passing it on under your own terms. You can use it to make UIs for commercial software that are not GPL and that you can sell.
There are multiple myths around Qt that is hard to bust...
"It is commercial only or GPL and expensive" => read about LGPL. "Qt is bloated to download, several Gigabytes"* => recently done setup manually downloading 7z, takes 250 mb to download base + declarative + multimedia and other stuff; "Qt takes hundreds megabytes, I will write UI engine myself, etc" => QWidget app with all deps including CRTrt, is 7 Mb in 7z, and if you want Declarative and multimedia it can go up to 22 Mb (proof https://github.com/mapron/d2modgen/releases/tag/0.7.2 ) in 7z. Which is as low as possible for all features you have from it.
*To be fair, online installer is quite... something. Don't like it, prefer manual download of archives.
You can use designer how you like, it just including form designer in your app for some reason, like your app is IDE? then yeah you have to comply GPL. U can use forms just fine, they don't use ide designer runtime, only QtWidgets.
Certainly, the last version had a Smalltalk like experience for C++, with incremental compilation, method replacements and so on. Which is also what made it so heavy for the hardware of the time.
IBM compilers are now all clang forks, for Linux, IBM i, z/OS.
"but that too costs thousands of dollars if you intend on distributing what you build." Wrong, you only need dollars if you patch qt sources AND do not share your patches. Otherwise it is LGPL. Qt Creator can be used separate of Qt framework itself for anything up to bare metal. It even ships lldb and clangd with it. so you just need some compiler after QtC installed.
I admit I could be wrong about this. When I looked at this before when looking for something to move to after Embarcadero started charging $2500 for RadStudio Professional (!). I didn't look at it for very long before I uninstalled the entire lot.
Mostly inertia, and the fact that it works out of the box with zero configuration. The alternatives aren't terribly hard to set up, but perhaps not if you're a newbie.
because you have to hunt around online for the right bits and bobs to get g++ recognized in your windows command prompt. Honestly it's easier to just dual boot into linux and sudo apt install build-essential.
For me i hate all IDEs in the perfect world i would use Vs code but cl.exe doesnt fucking work. Visual studio ismthe lest shitty out of all they shitty ones
Because other compilers are tricky to get going on Windows.
FWIW I would just run gcc inside WSL, but this means the software wouldn't be usable on Windows, and some people who happen to use Windows also want the software they write to be usable on Windows.
Most of my C programming these days is targeting the old Amiga platforms. I used to use a myriad of tools on the Amiga itself but with the Bartman Abyss extension, it's made development 1000 times easier. Really, I can code, debug and test all on a Windows platform with all the modern accoutrements that a modern Visual Studio Code install offers. And I have my A1200 set up right next to me so I can simply port the source across, recompile there and see it all run no problem. I can even address the custom hardware and AGA chipset directly using BA. It's great!
Because, unlike many other IDEs, it requires no knowledge of any other tools for simple projects. You don't need to know what a compiler, linker, or archiver is. Most common settings are exposed through UI dropdowns.
That makes it (or at least made it) the most accessible option for beginners to get started, and they can pay the debt of understanding the bigger picture later, if ever. (Though AI tends to work better with projects where everything is declared in text.)
there is a legacy answer too. Before C#, MSVC was the best, and its closest competition was nearly a decade behind in terms of features, ease of use, debugging, and more. Now that is not the case; MS stagnated C++ in favor of chasing C# and it feels like its outright designed to make you WANT to stop using it for C++. Since the managed C++ idea, its been all but rubbish for making a windows GUI program, which was a massive strong point before that.
Today though? I use it for the debugger as much as anything, secondary for the profiler. The nerfed editor annoys me, the GUI development is poorish, and it has few redeeming qualities other than those 2 features (and I think the profiler is a paid-for tool). Honestly I am just as happy with a modded notepadd++ and g++ for most things. And if I want a win GUI I am tempted to just use C# instead (so I guess I am falling into their trap). C# is actually a half decent language, just has a crap name and a few 'you can't do that' issues. Ill use visual when I want to start a micro project and don't feel like dealing with the details -- its ability to completely hide project setup/creation/etc and just mash go has a LOT of value for day to day small tasks. That makes it #1 for students taking C++ without the make/console tools/etc background needed for anything else.
People are either in a Unix world camp or Windows camp. This is especially true for C++, where you often develop things, which are meant to be used on a particular type of operating systems. For example gaming (where C++ is popular) can work on any platform, but everyone knows Windows is the system for gaming related stuff. For infrastructure like database you can use it for windows, but in most cases you serve it on some linux server
I most work on Linux, but one of the few things from Windows that makes me jealous is Visual Studio; particularly the debugger integration. It's good. Really good.
Because compiling C anything on Windows is a massive PITA compared to Linux. Figuring out how to compile programs on Windows prerequisite knowledge is an absolute nightmare. Put yourself in the shoes of a brand new programmer who reads a blog post or whatever that mentions using gcc or clang, and really think about the process that they will likely go through to merely print hello world.
I don't think it's true that the majority of development targeting Windows happens in VS. It's certainly popular, and I could believe it controls a plurality, but I doubt a majority.
Visual Studio Code ( not to be confused with Visual Studio). VSC is fast, can do anything you need with extensions and very easily extensible while working out of the box and has one click extension installs that include LSP and other QoL.
I use a combination of VS Code and Notepad++ for work. Mainly because my work laptop had those preinstalled by IT when I got it and I haven’t felt like getting them to install another IDE.
now that CLion is effectively free there's not much reason to use it, except if you're specifically targeting MSVC you have to download and use the visual studio installer anyway.
338
u/Thesorus Sep 12 '26
Because it just works.
It's a huge hunk of software, but it works.
479
u/HighOutputLoad Sep 12 '26 •
It has the best debugger known to mankind
109
u/msqrt Sep 12 '26
It’s quite convenient if you don’t care about multi-platform. The project system is simple enough and the debugger is top notch.
57
u/AvidCoco Sep 12 '26
Cus it’s good and gets the job done
11
u/bunn-y Sep 12 '26
I personally use vscode + cmake + clangd + lldb It works.
39
u/GYN-k4H-Q3z-75B Sep 12 '26
Visual Studio is the best IDE on Windows. It has also had free editions with next to no limitations for over twenty years. It's also easy to use Visual Studio on multiplatform projects.
17
u/areeighty Sep 13 '26
It has been a remarkably good dev environment for 30 years and, unlike a lot of software, continues to improve. For instance:
I came back to using it after 8 years of linux and macos dev and it is so much better than the hot mess of those platforms.
6
u/xtrqw Sep 12 '26
Because it's very good for debugging. Haven't seen something similar on linux, though I work at a (mostly) microsoft shop, so maybe I'm not up to date.
15
u/American_Streamer Sep 12 '26
Because the Visual Studio Debugger is widely considered to be the absolute king of C++ debuggers.
But you can also try out JetBrains' CLion, if you like, which seamlessly embeds both GDB and LLDB.
14
u/ADAMPOKE111 Sep 12 '26
when i was on windows, i did use full fat vs for a very long time purely because it's better than every other IDE on the platform. it was only when i wanted to start building things which are multi-platform and use CMake build systems that i decided the friction wasn't worth it. switched to vscode with clangd + lldb + cmake and it worked very well too. i'd argue clangd is better than whatever the language server that comes with vs by default is. HOWEVER the debugger and debugging utilities on vs are absolutely fantastic.
alternatives like code::blocks, eclipse, etc. just aren't in the same league. clion gets pretty close but costs money (unless you have a student license). i did try clion again recently but it's dog slow these days for some reason - not that it was ever particularly quick.
anyway. i've been on linux for a few years now and the vscode, clangd, lldb & cmake stack has been keeping me pretty content. code-compile-debug experience is very nice.
20
u/FACastello Sep 12 '26
Because it provides the most satisfying C++ development and debugging experience
13
u/No_Belt_9829 Sep 12 '26
Because VisualStudio comes with MSVC SDK, that contains all necessary toolchains and binaries to start developing in C++. However, you don't have to download the whole IDE, you can only download this SDK separately
6
u/Sniffy4 Sep 12 '26
For the same reason people on Mac choose Xcode; because targeting native platform APIs is best supported with the native IDE
6
u/the_Leading_Can Sep 12 '26
The debugger is unlike anything else on the market
3
u/El_RoviSoft Sep 12 '26
Im using it with ReSharper and somehow it’s more flexible than a regular CLion. Also just enourmous amount of instruments that just works. I have some minor issues with CLion and VSC all the time unlike in VS + R++.
3
u/CyberneticFloridaMan Sep 13 '26
Great built in debugging tools
9
u/SmokeMuch7356 Sep 12 '26
Path of least resistance. Visual Studio is pretty tightly integrated into Windows, so it's a bit easier to develop for Windows using VS.
You can certainly use other tools and they'll work, but VS works a bit better with a bit less effort.
5
u/MT4K Sep 12 '26
No need to deal with makefiles.
7
u/abdallahsoliman Sep 12 '26
I tried it after vscode and it wasn’t really intuitive. I really liked CLion instead. It was amazing.
I now moved to a full terminal workflow with nvim. But if I had to go back I’d choose CLion.
6
u/StickyDeltaStrike Sep 12 '26
It works ok and has a lot of tooling. You need to set up less stuff to get going.
Before VSCode there wasn’t a very windows alternative.
2
u/BrianScottGregory Sep 12 '26
Easy to use, used it for a couple decades in the corporate environment so I am used to it, has all the tools I need in one spot, flexible for different coding languages, second to none for multi-user code bases, tight integration with version control - the list just goes on.
Don't get me wrong, for personal projects and smaller projects I don't use it all the time - I use Notepad++ a LOT combined with command line compilation for tighter control. But other IDEs/Tools like VS Code and Eclipse feel like hokey wanna be afterthoughts rather than usable environments.
2
u/phylter99 Sep 12 '26
Because it’s good and it integrates well with Microsoft’s provided compiler.
2
u/kaibaceto Sep 12 '26
Watch the new releassed documentary about vscode then you will see they helped massively with innovation and Standardisation for the whole ide and editor space and devs have it easier now for the most part.
2
u/KuHeT Sep 13 '26
I use Clion
2
u/pjmlp Sep 13 '26
Because it is the official tooling of the OS vendor, and I always go with the official OS tools.
Additionally, it has great debugging tools, REPL for the .NET languages, hot code reloading for .NET and C++, incremental compilation and linking for C++, recently added support for debugging release builds, the integrated code analysis tooling and memory debugging tools, the hardned runtime since MFC days, and being the OS vendor tooling, the integration point for all commercial SDKs that target Windows from third parties.
Also since I am mostly doing .NET on Windows, all its designers, and C++/CLI as an easier way to integrate with C++ SDKs on Windows for .NET binding libraries.
2
u/GabiTheProgrammer Sep 13 '26
Attaching to Server and Client processes on the same time on two different VMs...chefs kiss
5
u/Zen-Ism99 Sep 12 '26
Because no one has exposed them to CLion…
5
u/iddivision Sep 12 '26
The compiler that comes with Visual Studio is the only C/C++ compiler that's properly supported on Windows.
4
u/not_some_username Sep 12 '26
It’s plug and play. You just has to click start or start with debugging.
3
u/deanrihpee Sep 12 '26
it's the best IDE on Windows IMO, especially if you are focusing on Windows software, i hate Windows but VS hard to compare, in some way I wish there's "VS for Linux" and not just MonoDevelop or something from JetBrains
3
u/jwezorek Sep 12 '26 edited Sep 13 '26
Why wouldn't I?
A lot of it for me is historical. In the past if you were writing Windows desktop software to Win32 you would be crazy to not use Visual Studio (or Visual C++ back in the day), especially if you needed C# too. Now there is CLion and Rider but those used to not exist.
So I got used to it as a Windows desktop developer in the 1990s and now I stick with it because it works and I've been using it for 30 years even though I use its CMake integration now instead of .sln files as I am no longer writing specifically Windows applications. CMake integration is pretty good in VS 2026; Qt integration works easily when using CMake, without any plugin or a lot of set up, so I have no reason to switch.
3
u/SyntheticDuckFlavour Sep 13 '26
Why do people on macOS mostly choose Xcode?
4
u/shadowndacorner Sep 12 '26 edited Sep 12 '26
A lot of reasons, many of which are historical. Imo it essentially boils down to inertia at this point. A lot of businesses have had VS licenses for decades and all of their onboarding materials, extensions, etc are built around it. It used to have the best intellisense around, and has some of the best debugging tools available on Windows. And a lot of people like using first party tooling. It also does things a bit differently than pretty much everyone else, so it's harder for people trained specifically on VS to transition to other environments.
However, I don't think it's kept up with open source alternatives. Clangd is miles better than it's intellisense atp, visual studio itself has gotten extremely slow and bloated (even compared to how it used to be), MSVC is behind both GCC and Clang in pretty much all areas afaik... The only place VS is arguably still best in class on Windows is batteries-included debugging, but even that is a hell of a lot closer than it used to be.
Imo there's not much reason to use Microsoft's stack on Windows anymore, beyond keeping VS installed for debugging when other tools aren't doing the job.
4
u/lppedd Sep 12 '26
It's what people learn to use in schools and unis. But as far as I know CLion is taking away a non-negligible chunk of the market.
3
u/SlowPokeInTexas Sep 12 '26
There are alternatives that come with compromises. I guess further qualification would help. Are you in need of:
..and in a related question.. Are you interested in targeting a service, a Console app, or a Windows UI application?
Personally I hate the Visual Studio IDE. It's ancient, big, slow, and has a lot of buried bones, but it's also very powerful if you know what you're doing. I dislike VS Code even more. Windows used to have a handful of reasonably priced C++ compilers and IDEs but they've mostly died off.
2
u/holyblackcat Sep 12 '26
Mostly inertia, and the fact that it works out of the box with zero configuration. The alternatives aren't terribly hard to set up, but perhaps not if you're a newbie.
2
u/aCuria Sep 13 '26 edited Sep 13 '26
Cmake is annoying that’s why, wastes time setting up and maintaining it
For most dependencies you just gotta write a list of dependencies in vcpkg.json and visual studio handles the rest
If something is not supported by vcpkg then use git modules
2
u/ViRROOO Sep 12 '26
I like sending anonymous* data to help Microsoft improve their products.
1
u/Need_Coffee_1921 Sep 12 '26
because it's a clean and fine IDE?
VS code is more like sandbox and somewhat annoying (setting up, all those plugins etc) - I'll stick to VS as well, clean and great
1
u/st_heron Sep 13 '26
It does the job quite well. I dislike it but I can't lie about it's capabilities.
1
u/Q_Mulative Sep 13 '26
because you have to hunt around online for the right bits and bobs to get g++ recognized in your windows command prompt. Honestly it's easier to just dual boot into linux and sudo apt install build-essential.
1
u/Ateist Sep 13 '26
Visual studio produces significantly smaller executables.
1
u/Blue_guy3211 Sep 13 '26
For me i hate all IDEs in the perfect world i would use Vs code but cl.exe doesnt fucking work. Visual studio ismthe lest shitty out of all they shitty ones
1
u/Alternative-Emu-4725 Sep 13 '26
Icarus Verilog and FPGAs
1
u/rileyrgham Sep 13 '26
Where did you pick that up?
1
u/uusfiyeyh Sep 13 '26
I use Visual Studio Community because is free for small projects. When working with C++ I use it along CMake, without the VS integration.
1
u/bronekkk Sep 13 '26
Because other compilers are tricky to get going on Windows.
FWIW I would just run gcc inside WSL, but this means the software wouldn't be usable on Windows, and some people who happen to use Windows also want the software they write to be usable on Windows.
1
u/IEnumerable661 Sep 13 '26
Most of my C programming these days is targeting the old Amiga platforms. I used to use a myriad of tools on the Amiga itself but with the Bartman Abyss extension, it's made development 1000 times easier. Really, I can code, debug and test all on a Windows platform with all the modern accoutrements that a modern Visual Studio Code install offers. And I have my A1200 set up right next to me so I can simply port the source across, recompile there and see it all run no problem. I can even address the custom hardware and AGA chipset directly using BA. It's great!
1
u/Fabulous_Pick428 Sep 13 '26
built in tools and almost no config needed
1
u/New_Hold8135 Sep 13 '26
compiler gives access to native calls directly. Gcc based ones adds dll to do that.
Also in order to install msvc you must install vstudio.
1
u/BoopyDog Sep 14 '26
I loved "using std;" and not having to figure out how to package the project. Switching to Linux changed that.
1
u/JumpyJustice Sep 16 '26
Because, unlike many other IDEs, it requires no knowledge of any other tools for simple projects. You don't need to know what a compiler, linker, or archiver is. Most common settings are exposed through UI dropdowns.
That makes it (or at least made it) the most accessible option for beginners to get started, and they can pay the debt of understanding the bigger picture later, if ever. (Though AI tends to work better with projects where everything is declared in text.)
1
u/Hanzimer Sep 16 '26
Because it's free? It works but honestly, it's a big piece of thousands old patches.
1
u/chakani Sep 17 '26
It’s solid as a tank. Doesn’t crash. As much as I love Qt, the latter regularly seizes up when debugging.
1
u/Independent_Art_6676 Sep 18 '26
there is a legacy answer too. Before C#, MSVC was the best, and its closest competition was nearly a decade behind in terms of features, ease of use, debugging, and more. Now that is not the case; MS stagnated C++ in favor of chasing C# and it feels like its outright designed to make you WANT to stop using it for C++. Since the managed C++ idea, its been all but rubbish for making a windows GUI program, which was a massive strong point before that.
Today though? I use it for the debugger as much as anything, secondary for the profiler. The nerfed editor annoys me, the GUI development is poorish, and it has few redeeming qualities other than those 2 features (and I think the profiler is a paid-for tool). Honestly I am just as happy with a modded notepadd++ and g++ for most things. And if I want a win GUI I am tempted to just use C# instead (so I guess I am falling into their trap). C# is actually a half decent language, just has a crap name and a few 'you can't do that' issues. Ill use visual when I want to start a micro project and don't feel like dealing with the details -- its ability to completely hide project setup/creation/etc and just mash go has a LOT of value for day to day small tasks. That makes it #1 for students taking C++ without the make/console tools/etc background needed for anything else.
1
u/Slsyyy Sep 18 '26
People are either in a Unix world camp or Windows camp. This is especially true for C++, where you often develop things, which are meant to be used on a particular type of operating systems. For example gaming (where C++ is popular) can work on any platform, but everyone knows Windows is the system for gaming related stuff. For infrastructure like database you can use it for windows, but in most cases you serve it on some linux server
1
u/OddForce7217 Sep 18 '26
I most work on Linux, but one of the few things from Windows that makes me jealous is Visual Studio; particularly the debugger integration. It's good. Really good.
1
u/PossiblyAussie Sep 24 '26
Because compiling C anything on Windows is a massive PITA compared to Linux. Figuring out how to compile programs on Windows prerequisite knowledge is an absolute nightmare. Put yourself in the shoes of a brand new programmer who reads a blog post or whatever that mentions using gcc or clang, and really think about the process that they will likely go through to merely print hello world.
1
u/NilacTheGrim Sep 25 '26
Why do people use Windows?
1
u/nmariusp Sep 26 '26
For which programming language? Docker? What is the target operating system? What type of app? Which app framework?
1
u/JeffMcClintock Oct 02 '26
it works OK
1
u/not_a_novel_account cmake dev Sep 12 '26
[Citation Needed]
I don't think it's true that the majority of development targeting Windows happens in VS. It's certainly popular, and I could believe it controls a plurality, but I doubt a majority.
1
u/La-ze Sep 12 '26
Visual Studio Code ( not to be confused with Visual Studio). VSC is fast, can do anything you need with extensions and very easily extensible while working out of the box and has one click extension installs that include LSP and other QoL.
1
u/gamesntech Sep 12 '26
It’s simply the best IDE. As long as you’re on Windows and can work within the platform limitations
1
u/duane11583 Sep 13 '26
why do peopke on linux use gcc… it is the defacto solution.
a long time ago there was another compiler called aztec c (was for ms dos long before windows days) or they would use turbo c or watcom
kind of hard to compete with the incumbent
1
u/Responsible_Elk_9656 Sep 13 '26
对于新手来说他有图形化并且安装依赖简单,不是很多初学者喜欢把精力花在配置上
1
u/hellocppdotdev Sep 13 '26
Developing on windows is terrible why not continue the experience with bloatware.
0
u/Garland_Key Sep 12 '26
Skill issues
0
u/Jakkilip Sep 12 '26
Both are microslop so they work well together
0
u/runed_golem Sep 12 '26
I use a combination of VS Code and Notepad++ for work. Mainly because my work laptop had those preinstalled by IT when I got it and I haven’t felt like getting them to install another IDE.
0
u/Electronic_Tap_8052 Sep 12 '26
It used to be the only real free choice.
now that CLion is effectively free there's not much reason to use it, except if you're specifically targeting MSVC you have to download and use the visual studio installer anyway.
0
u/KernelPanic-42 Sep 15 '26
Because Visual studio is a phenomenal IDE
-2
u/hadrabap Sep 12 '26
Because serious tools require operating system 😁