Visual studio does not show all the compile errors at once. for example one time it says I have two errors and when I fix them then 102 more compile errors are showing up and these new errors are not dependent on those two previous errors. How can we tell it to go through all the code and show all compile errors at once
You don't mention what language you're using but there is no hidden setting that hides errors per se, other than than the compiler giving up after it has encountered a gazillion issues (Visual C++). It has decided that there is so much wrong with the code that it's not going to waste even more time teling you stuff that you're just going to ignore. Classic examples of this are caused by missing braces and parenthesis, or botched #include guards etc.
This is impossible to answer without knowing what compiler you use. Your source code is in rather poor shape if it generates so many errors. Expecting the full list of errors to be useful is idle hope, one bad declaration can generate a slew of other errors in code that isn't actually wrong. You can only really trust the first few errors.
Chip away at it, one error at a time. And make sure that your changes don't in turn generate a whole bunch of new errors. Which is what is going on by the sound of it.