
Since VS Code is just a text editor, you need a compiler. Many users use the MSYS2 installer to get the latest version of GCC.
This is where you type your code. Popular choices include Visual Studio, VS Code, and Code::Blocks. 2. Best Options for Windows
Once finished, type clang --version to ensure the compiler is ready. Editor: Most Mac developers prefer VS Code or CLion. 4. Setting Up on Linux
Visual Studio is the industry standard. It comes with the MSVC compiler built-in. Go to the Visual Studio Download Page.
Open VS Code, go to the Extensions view (Ctrl+Shift+X), and search for "C/C++" by Microsoft. 3. Setting Up on macOS
Since VS Code is just a text editor, you need a compiler. Many users use the MSYS2 installer to get the latest version of GCC.
This is where you type your code. Popular choices include Visual Studio, VS Code, and Code::Blocks. 2. Best Options for Windows
Once finished, type clang --version to ensure the compiler is ready. Editor: Most Mac developers prefer VS Code or CLion. 4. Setting Up on Linux
Visual Studio is the industry standard. It comes with the MSVC compiler built-in. Go to the Visual Studio Download Page.
Open VS Code, go to the Extensions view (Ctrl+Shift+X), and search for "C/C++" by Microsoft. 3. Setting Up on macOS