Just for the record, these are the settings I’m always using with Visual Studio 2019, when creating a new, empty C++ project:
- General
- Output Directory:
$(SolutionDir)$(Platform)_$(Configuration)\ - Intermediate Directory:
$(Platform)_$(Configuration)\ - C++ Language Standard:
ISO C++20 Standard (/std:c++20)
- Output Directory:
- C/C++
- General
- Debug Information Format:
None(Release) - Warning Level:
Level4 (/W4) - Treat Warning As Errors:
Yes (/WX)(Release) - Multi-processor Compilation:
Yes (/MP)
- Debug Information Format:
- Code Generation
- Runtime Library:
Multi-threaded (/MT)(Release)
- Runtime Library:
- General
- Linker
- Debugging
- Generate Debug Info:
No(Release)
- Generate Debug Info:
- System
- SubSystem:
Windows (/SUBSYSTEM:WINDOWS)
- SubSystem:
- Debugging
- Code Analysis
- General
- Enable Code Analysis on Build:
Yes
- Enable Code Analysis on Build:
- General
As of April 2024, the settings above also apply to Visual Studio 2022.
As of June 2026, the settings above also apply to Visual Studio 2026.