The best way to prevent a yeast infection is to wear loose-fitting clothing and avoid vaginal products such as sprays, powders, or scented pads. If you still develop yeast infection symptoms, you can also start using an antifungal during your course of antibiotics after consulting with a doctor.