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 ...