Visual Studio add-ins, extensions and tools

January 26, 2012

Visual Lint static C++ code analysis adapter for Visual Studio

Filed under: Reviews — Tags: , , , — Sergey Vlasov @ 11:06 am

Visual Lint by Riverblade integrates most popular static C++ code analysis tools with Visual Studio. It supports Gimpel PC-lint, CppCheck, Google cpplint.py and Inspirel Vera++. Visual Lint lets you run these tools from Visual Studio with a single click for a selected file or a solution and displays analysis results in the Visual Studio editor or a tool window:

Visual Lint shows CppCheck analysis results in Visual Studio 2008

Visual Lint shows CppCheck analysis results in Visual Studio 2008


After you update and save a file, Visual Lint automatically runs an analysis on it in background and almost immediately shows any violations in the gutter. You can select which issues you want to see by type and by id. A summarizing HTML report is available, but with an established process number of issues should be zero.

Visual Lint doesn’t do any code analysis itself. It passes information about your Visual Studio project to the selected external analysis tool, parses analysis results and displays them in the most convenient way in Visual Studio. One limitation is that Visual Lint can’t run all configured tools at once to cover all kinds of issues; you need to manually switch between CppCheck, cpplint etc:

Analysis tool selection

Analysis tool selection


CppCheck mostly checks correctness of code, PC-lint checks both correctness and style, cpplint and Vera++ verify formatting, helping you conform to your company’s coding standard:
Vera++ formatting analysis results

Vera++ formatting analysis results


cpplint formatting analysis results

cpplint formatting analysis results


Particularly for formatting issues, it is very important that all tools allow creation of custom rules, tailoring to your specific needs.

Visual Lint also support C# code analysis via FxCop and Java analysis via FindBugs. All Visual Studio versions from VC 6 to VS 2010 are supported. A single user Standard Edition license costs $199 USD, but most useful features like code editor markers, multiple tools support and issues filters are only available in the Enterprise Edition that costs $799. You can download a 30-day trial version from the official site.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

January 20, 2012

Favorite Documents v1.5 released

Filed under: My tools — Tags: , , — Sergey Vlasov @ 8:14 am

Favorite Documents is a free extension that lets you create links to frequently used code files and then quickly open them as a group or individually from the Favorites menu in Visual Studio 2010/11.

Favorite Documents v1.5 adds the abilities to create links to folders in Source Control Explorer and favorite documents from the Solution Explorer context menu.

Download the installer.

January 18, 2012

VSColorOutput extension for Visual Studio 2010 and Visual Studio 11

Filed under: Reviews — Tags: , , — Sergey Vlasov @ 7:41 pm

VSColorOutput by Blue Onion Software simplifies large logs analysis in the Visual Studio Output window coloring important lines:

Colored build results in the Output window in Visual Studio 2010

Colored build results in the Output window in Visual Studio 2010


For example, C++ developers often need to look at the output to find the origin of an error that involves several template instantiations:
Template instantiations log

Template instantiations log


In practice, the most important line in this log includes a reference to a file in the current solution. With VSColorOutput it is easy to highlight lines with references to files in the solution and downplay lines with references to standard include files:
Colored template instantiations log

Colored template instantiations log


You can classify output lines for your needs using .NET regular expressions. To open the RegExClassification Collection Editor dialog go to ToolsOptionsVSColorOutput:
VSColorOutput settings in the Visual Studio Options dialog

VSColorOutput settings in the Visual Studio Options dialog


For example, to color build results red when build fails, you can use the following regex “Build: \d+ succeeded( or up-to-date)?, (?!0)\d+ failed” with the classification type LogError and position this member before the “(=====|—–),BuildHead” member as the first member match wins:
RegExClassification Collection Editor

RegExClassification Collection Editor


Red build results on a build error

Red build results on a build error


Note that after modifying classification rules you need to regenerate output (e.g. rebuild) to see the changes. You can customize colors for each output line type going to ToolsOptionsEnvironmentFonts and Colors:
Color settings for different output line types

Color settings for different output line types


VSColorOutput colors trace messages in the Output window during debugging as well. Actually, this was author’s original idea for the extension:
Coloring trace messages during a debug session

Coloring trace messages during a debug session


VSColorOutput also supports Visual Studio 11 Developer Preview:
Colored build results in the Output window in Visual Studio 11

Colored build results in the Output window in Visual Studio 11


You can download the free VSColorOutput extension for Visual Studio 2010 and Visual Studio 11 from Visual Studio Gallery. You can get source code for the extension from Codeplex.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

January 12, 2012

Code Jumper extension for Visual Studio 2010 review

Filed under: Reviews — Tags: , — Sergey Vlasov @ 6:48 am

Code Jumper by Productive Joe streamlines navigation within a code file listing all methods and properties in a document to a side of the Visual Studio editor. You can navigate to any declaration with a single click in the list:

Code Jumper's navigation panel to the right of the open document in Visual Studio 2010

Code Jumper's navigation panel to the right of the open document in Visual Studio 2010


Clicking on a free space in the navigation panel opens a context menu to hide variables and properties, customize Code Jumper:
Options context menu

Options context menu


Code Jumper Options dialog

Code Jumper Options dialog

You can select navigation panel location to the right or to the left of the editor, default variables and properties visibility, alphabetical or original sorting (alphabetical sorting doesn’t currently work). You will need to reopen a document to apply new changes.

You can customize colors in Code Jumper’s navigation panel by editing WPF resources it uses. On the Themes tab click Edit Dafault.xaml, drag Default.xaml from the opened Explorer window to Visual Studio and modify any brush. Again, you will need to reopen a document to apply new colors:

Themes customization tab

Themes customization tab


Default.xaml customization in Visual Studio 2010 editor

Default.xaml customization in Visual Studio 2010 editor


Code Jumper supports C++ and C++/CLI code and though I crashed it several times clicking on some declarations it generally works:
Code Jumper navigation for C++ code

Code Jumper navigation for C++ code


You can also quickly rename a method or a variable right clicking on a declaration in the navigation panel:
Rename context menu command

Rename context menu command


Code Jumper supports C#, Visual Basic, C++ in Visual Studio 2010. You can download this free extension from Visual Studio Gallery.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

January 6, 2012

CodeFlow code review tool for Visual Studio

Filed under: Uncategorized — Tags: , — Sergey Vlasov @ 9:31 am

A new code review tool CodeFlow will ship in the next version of Visual Studio: The Story of CodeFlow.

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.