I don't know if I'm alone in that condition but when I try to add code in InfoPath 2013, it try to open VS 2012 (VSTA) and it's stuck there.
Windows 7 x64, .NET 4.5, Office Pro Plus 2013 x86 from ISO registered with O365 account for licence and Visual Studio 2012 PRO as well.
All try to uninstall, repair or similar actions was done with VSTA and Office.
I try to follow a FIX that I've found on Microsoft site related to the Beta2 version of VSTA and it's consist to copy some VSTA files into Office program folder without a result.
Thank you for any help.