Visual Studio C++ IDE settings

Or makefiles to anyone else…

Two main sections. There is the IDE settings themselves and also the projects Configuration Properties. Note that debugging is in with the IDE and not with the compiler configuration.

IDE Settings

Menu -> Tools -> Options…

C/C++

Scroll Bars: Use map mode for vertical scroll bar, Wide

Debugging

General -> Enable Just My Code (Turn off for stepping through the STL implementation.

Configuration Properties

These can also be set via putting all the values in a .props file. More on that later.

Menu -> Project -> Properties

Only use x64 (Debug and Release).

C/C++ -> Language -> C++ Language Standard -> ISO C++ 17 Standard (/std:c++17)

C/C++ -> General -> Warning Level -> EnableAllWarnings (/Wall)

C/C++ -> General -> Additional Include Directories -> “C:\…\cpp\include”

C/C++ -> General -> Treat Warnings as Errors -> Yes (/WX)

C/C++ Precompiled Headers -> Not Using Precompiled Headers

TODO: Lots of other changes to get a minimal command line. I would like to justify each option. Currently at this:

/JMC 
/permissive- 
/ifcOutput "x64\Debug\" 
/GS 
/Wall 
/Zc:wchar_t 
/ZI 
/Gm- 
/Od 
/sdl 
/Fd"x64\Debug\vc142.pdb" 
/Zc:inline 
/fp:precise 
/D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "UNICODE" 
/errorReport:prompt 
/WX 
/Zc:forScope 
/RTC1 
/Gd 
/MDd 
/FC 
/Fa"x64\Debug\" 
/EHsc 
/nologo 
/Fo"x64\Debug\" 
/Fp"x64\Debug\includeTests.pch" 
/diagnostics:column