In Windows, the compiler that comes with Visual Studio is MSVC. You are most probably using cl.exe
to compile your files. Visual Studio projects has .vcxproj
extension.
GCC, on the other hand, is the most used compiler in Linux environments. Its project file is a Makefile
, which is compiled by make
command.
There are a couple of options in Windows.
- You can opt-in to use Windows default development environment Visual Studio. Its debugging capabilities are very good. You may not like this option if you are a terminal guy.
- You can use MinGW to port GCC to Windows.
Makefile
will work in this option. Keep in mind that this is not a native solution.
- You can use the cross platform solution CMake. After writing a
CMakeLists.txt
, it will create the project file depending on your compiler (Makefile
for GCC, or .sln
and .vcxproj
files for MSVC).
You can use both terminal to compile your files and open the solution file to debug your applications in Visual Studio.
VSCode is not an IDE, it is a fancy text editor with extensions. Once you have decided what development environment to use, you can find related extensions to make your life easier.