I need help to find some idioms on creating a sudden idea, so I thought, why not, ask the question? So I'm gonna write down the ones I already know and then ask you guys to write yours...
Popped into my mind
An "Aha!" moment
Hit me in the face like a thunderstorm