Code Analyzer from Visual Studio (Alt + F11)


The Visual Studio IDE provides a handy code analyzer tool (the shortcut is Alt + F11 to analyze the solution). The solution can be C#, C++ (can be native or managed .NET) or other programming languages supported by Visual Studio. It is a static code analyzer which is similar to FxCop (by Microsoft), that will find out the potential code violations but these two tools focus on different aspects of the code quality.

alt-f11-visual-studio Code Analyzer from Visual Studio (Alt + F11) Visual Studio

alt-f11-visual-studio

Then, the warnings will be categorized into Memory, Security, Invalid API parameters etc. It finds bug in my C++ code! The following code has potential array-out-of-bound-access error, which didn’t causes problem (rarely) in this particular case, but it doesn’t mean that the code is right, so it is better to fix it according to the hint.

visual-studio-code-analysis Code Analyzer from Visual Studio (Alt + F11) Visual Studio

visual-studio-code-analysis

In [More information], the steps are marked yellow for code statements and corresponding explanations (variables, branches) are given.

–EOF (The Ultimate Computing & Technology Blog) —

GD Star Rating
loading...
270 words
Last Post: How to Customize Search Engine for WordPress?
Next Post: Freeware to Convert MP3 by Quality

The Permanent URL is: Code Analyzer from Visual Studio (Alt + F11)

Leave a Reply