'Make Visual Studio to show All Compile Errors!
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
Solution 1:[1]
For Visual Studio 2015, there is a setting for C# and Basic, Tools->Options->Text Editor->Lang->Advanced: Enable full solution analysis.
https://msdn.microsoft.com/en-us/library/mt709421.aspx?f=255&MSPPError=-2147217396
Solution 2:[2]
You don't mention what language you're using [1] but there is no hidden setting that hides errors per-se, other than the compiler giving up after it has encountered an excessive number of issues (at least for Visual C++ [2]).
The trouble with (Visual) C++ [2] is that simple mistakes like missing braces and parenthesis, or unmatched #include guards, etc. causes a cascading set of failures that can be overwhelming causing a torrent of errors that means your tiny mistake is like the proverbial needle in a haystack. Hence the compiler can decide that it's best for both of you if it just stops early rather than fill your console or disk with error messages.
[1] They hadn't at the time I answered the question.
[2] back in 2010 when the question was asked.
Update: while this answer is probably totally irrelevant 10 years later I'm leaving it in place for historical reasons. I have edited it to hopefully better show my original intent, which was to suggest that the tool, not the programmer is at fault. I apologise if the sarcasm in my answer was misinterpreted and any offence was caused.
Solution 3:[3]
Update of jmoreno's answer, for versions of Visual Studio >= 16.5 (2019) the "Enable full solution analysis" checkbox has gone, replaced by a set of radio buttons, at Text Editor/lang/Advanced
The equivalent is now "Entire Solution"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | jmoreno |
| Solution 2 | |
| Solution 3 |

