Learning scales

So i was reading the crusades, and learning about the major and minor scales. I know the formula behind them and how to form them. I want to find out how do you guys remember the scales. E.g. i'm playing in C major and want to switch quickly.