I agree on public transit, but it's not clear what to do about it. An east-west Geary subway line has been proposed since the 1930s, but it's really expensive to build in an earthquake zone, and the city / taxpayers just haven't been willing to pay what it'd cost. A cheaper alternative that leverages the already-built infrastructure might be to convince people to live in under-developed areas that do have good transit already, such as Oakland, which is actually closer to downtown SF by transit-minutes than much of SF proper is.
One thing that would help on the latter issue is if more of the suburban cities on transit lines also dropped their anti-development attitudes. For example, there is enough demand that there should be condos/apartments near the Palo Alto Caltrain station. But Palo Alto won't allow it, because they have some idea of an upper-class suburb full of single-family homes that they'd like to protect.