This video shows visual studio code setup on windows 11 in 2024
If want to set up vs code for C++ in mac, this videos is also for you. Setting up vs code for cpp files is simple, all you need is to download a compiler, such as mingw for windows, linux, or mac, and then, you can use C++ compiler on vs code even without an extension. This is exactly what I've shown in the videos.
Installing C++ in Visual Studio Code simplifies the process for you, so you don't have to use Visual Studio IDE, instead you can use C++ on VS Code without an extension.