https://blogs.msdn.microsoft.com/visualstudio/2014/02/17/int...
The tool is available here:
https://visualstudiogallery.msdn.microsoft.com/a1166718-a2d9...
I've been programming professionally for much longer than there's been a stack overflow. I have never, ever, cut and pasted code from stack overflow.
I quit not longer after that.
Besides that, most snippets are small and trivial enough that using them would easily fall under fair use.
Obviously, your case showed a lack of care on their part, but you can use SO code.
My point is that trying to copyright basic snippets of code is just ridiculous, it's something lawyers have tried to force on programmers but it makes no sense. We would be completely unable to program at all if we listened to lawyers all the time.
Clean room usage~