how to prevent shin splints

Wear shoes with good support and padding that fit your foot type.
Warm up before working out.
Maintain proper mobility in your ankles and hips.

Stretch the muscles in your legs, especially after workouts.
Improve strength in the stabilizing muscles of your core, hips, and ankles.
Stop working out as soon as you feel pain in your shins.