How do i generate c++ code from blueprint in visual studio?

Question answered and found . Leaving it here if someone else wants to find.