Vitamin C stops you getting sick. Take a big dose at the first sniffle and you will fight the cold off, and take it every day through winter and you will not catch one in the first place. More is better, so make it a gram.
Across 29 placebo-controlled comparisons in over 11,000 people, taking vitamin C every day did not change how often people in the general population caught colds. What it did change was the illness itself: colds ran about 8% shorter in adults and 14% shorter in children, and 15% less severe across 15 trials, with the benefit falling on the severe symptoms rather than the mild ones. Starting vitamin C only once symptoms had already begun, which is how most people actually take it, showed no consistent effect across seven trials. Prevention does appear in one group: in five trials of marathon runners, skiers and soldiers on subarctic exercises, vitamin C halved cold incidence. And more is not straightforwardly better, because oral absorption saturates: white blood cells are full at about 100 mg a day, and past a single 500 mg dose the surplus is largely passed in urine.
The belief and the evidence are not answering the same question. Vitamin C does not keep a cold away; it makes the cold you get somewhat shorter and noticeably less rough, and only if you were already taking it before you fell ill.