I get shin splints. What can I do to prevent this?

Good shoes/supports. Shin splint are an overuse injury. Improving foot function with good shoes and supports is most helpful. Ice, antiinflammatories and limited weight bearing activities. See your foot specialists for an evaluation. Dr l.
Orthotics. Or arch supports, they also believe it or not make shin splint braces.