Yeast infection help

V

So I just got diagnosed with a yeast infection. My Dr basically told me to wear no underwear and that I should wear dresses. WELL I don’t own dresses so would it be fine to wear no underwear with loose cotton shorts?