In formal writing, I do not use contractions at all.

...whereas in formal contracts, most lawyers do not use writing at all (or not as we understand it, Jim!)