Re: sorry but ain't ever gonna happen
yes in theory we could terraform a planet, and genetically alter us as it seem likely we would have to meet the planet at least half way, but why?
Ignoring the moral ethical objections of destroying an existing biosphere, lets assume this is a barren world, like maybe mars, there is still the fundamental question of motivation.
the technology and timescale involved in even the most optimistic estimations on what would be required are on the extreme end of any imaginable civilization scale. Were talking a project that from our current historical perspective would have been started by the ancient Mesopotamians and still not be half done.
Also any attempt of starting such a project would almost certainly preclude the ability of us to survive for extended periods in space.
So the mayor question is once we, assuming we actually do, learn to survive in space, in large habitats, hollowed out asteroids, or floating bubbles of nano-foam, why would we go back down the gravity well?
ignoring the immediate cost, would life on such a terraformed planet be safer?
I don't see how?
yes your buying yourself a large gravitational mass the hide behind and perhaps an atmosphere, maybe even a magnetic field if your very very lucky or clever, but in order to even start this project you already would have already had to solve the issues of survivability in weightlessness and space born radiation.
Resources?.. if our own solar system is an example it appears there are far more easily accessible resources floating around out side of planetary gravity wells than down them.
Does a planet buy you more security? I don't see how, ignoring seismic upheaval, atmospheric feedback loops, orbital permutations, and countless other issues planets have they also lack the one fundamental advantage of a space habitat ... the ability to get out of the way.
The best defence is to not be there to get hit.
Then we are back to time scale, were roughly halfway thru the estimated 1200 million year period that our planet is likely capable of supporting multi-cellular life on it surface at this distance from the sun, this is assuming things continue peacefully, that the sun doesn't burp us to a cinder that a local gamma ray event or supernova, or any other countless other thin we don't yet know about doesn't scours us clean.
If we were gonna spend millions if not tens of millions of years building a home wouldn't it be nice to take it with us when the neighbourhood went south? If were talking about civilizations with the technology and timescale of planning of doing such a thing I admit we have no idea of their motivation, they could just being doing it to watch it burn prettily, but this still seems unlikely.
The problem here is that we have certain tropes in our thinking, We live on earth, earth is a planet, there are other planets, we will live on them. The issue is that in order to get to them we necessarily undergo a shift in perspective, the amount of resources and effort to make planets livable is so huge and the advantages and reason for doing so becomes so small that once we have the ability to do so, if we ever do, we can't see the reason why we would want to.
This doesn't fit the amazing world of science fiction image we all grew up on, but very little we actually learn does.