As with many issues relating to your body and skin, the main solution is prevention. The best way to prevent acne scars is to treat your acne properly. If you've scratched a spot, you can also use a cream that will promote repair and limit the risk of marks.
How to avoid acne scars