Visual Studio add-ins, extensions and tools

March 30, 2012

Find in Solution Explorer extension for Visual Studio 2010 and Visual Studio 11

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

Find in Solution Explorer extension by Sam Harwell lets you quickly locate the open document in Solution Explorer. It adds the Find In Solution Explorer tab context menu command that selects the current document in Solution Explorer:

Find In Solution Explorer tab context menu command in Visual Studio 2010

Find In Solution Explorer tab context menu command in Visual Studio 2010

This functionality is a part of several commercial add-ins like ReSharper (ReSharper | Tools | Locate in Solution Explorer menu command) and Tabs Studio (Sync document with Solution Explorer tab context menu command), but Find in Solution Explorer is free and provides exactly what is needed – no more and no less.

The Find in Solution Explorer extension support Visual Studio 2010 and Visual Studio 11. The installer can be downloaded from Visual Studio Gallery.

March 29, 2012

VSCalm extension for Visual Studio 11 Beta

Filed under: Reviews — Tags: , — Sergey Vlasov @ 12:55 pm

VSCalm extension by Jeremy Iverson restores standard tool window titles format in VS 11 Beta IDE. It changes the ALL CAPS letters to normal title case and removes :::colon-like::: gripper bars:

Original Visual Studio 11 Beta IDE

Original Visual Studio 11 Beta IDE


Modified tool window titles

Modified tool window titles

Remove “ALL CAPS” is the #2 request for Visual Studio IDE on the UserVoice Visual Studio forum (#1 is the “Add some color to Visual Studio 11 Beta”). Most probably Visual Studio 11 RC will fix this problem, but for now you can use VSCalm. Installation of VSCalm adds the Calm command to the Visual Studio Tools menu:

The Calm command in the Visual Studio Tools menu

The Calm command in the Visual Studio Tools menu

To modify titles you need to execute this command each time you start Visual Studio. I think it will be more convenient to apply title modifications automatically on Visual Studio startup without any additional commands.

VSCalm is a free open-source extension for Visual Studio 11. You can download the installer from Visual Studio Gallery. Source code is available on github.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

March 26, 2012

Instant Feature Builder extension for Visual Studio 2010

Filed under: Reviews — Tags: , — Sergey Vlasov @ 8:57 am

Instant Feature Builder extension by Michael Lehman lets you package documentation, source code and interaction logic to run inside Visual Studio. To see how an end product may look like, you can install one of the several guides that use the Feature Builder engine: MVVM Training, Hands On Lab: Introduction to Windows Workflow Foundation (WF4), WPF Simple Application Walkthrough.

Let’s look at the WF4 Hands On Lab package. First of all, it’s a standard vsix package that is installed as a standard Visual Studio 2010 extension. After the installation you need to create a new project from a Hands On Lab exercise template:

The new project dialog for a Hands On Lab exercise

The new project dialog for a Hands On Lab exercise

When the new project is created, you get the packaged documentation, source code and interaction logic:

Hands On Lab content in Visual Studio 2010

Hands On Lab content in Visual Studio 2010

The Guidance Workflow Explorer window displays and tracks your progress on lab exercises, the Guidance Browser window contains instructions and helpful hyperlinks that open documents, web sites, files in the solution, Visual Studio tool windows and can execute Visual Studio commands like build and run a project, Solution Explorer displays source code prepared for the exercise.

Note that the guides mentioned above were produced using the more complex Feature Builder Power Tool. Instant Feature Builder uses the same Feature Extension Runtime, but don’t support adding custom menu commands to Visual Studio and don’t control workflow between parts of documentation. Advantages of Instant Feature Builder are prebuild hyperlinks to open a file or run a Visual Studio command and easy documentation publishing just dragging documents to a folder in Solution Explorer. I think Instant Feature Builder is significantly easier to use and covers all essential functionality for typical guide publishing.

To try Instant Feature Builder I created a tiny guide for my Tabs Studio add-in. Note that after installing Instant Feature Builder you also need to install Visual Studio 2010 SP1 SDK. Create a new project from the InstantFeatureExtension template, the project name will be the name of your extension:

The new project dialog for Tabs Studio Guide

The new project dialog for Tabs Studio Guide

To add a sample project to your guide, open a new Visual Studio instance, create a new C#, Windows, WPF Application project and then export it as a template using the FileExport Template… command. The Template Name parameter is very important as by this name your users will need to locate the template in the New Project dialog to instantiate the guide. Uncheck the Automatically import the template into Visual Studio option:

Export Template Wizard for a sample project

Export Template Wizard for a sample project

Once created, drag TabsStudioGuide.zip to the TemplatesProjects folder in Solution Explorer of your guide solution:

A template project in the guide solution

A template project in the guide solution

For documentation you can use the mht file format and edit it with Microsoft Word 2010. You can use images and reach text formatting as usual:

mht file editing in Microsoft Word 2010

mht file editing in Microsoft Word 2010

Instant Feature Builder conveniently creates the sample Overview.mht file in the ContentProcessGuidance folder. This file contains sample hyperlinks to open a file and run a Visual Studio command. For your guide you can copy these hyperlinks and modify text and target in Word to open your files and run your commands. Once documentation files are ready, drag them to the ContentProcessGuidance folder:

Documentation files in the guide solution

Documentation files in the guide solution

That’s all. Build your solution and publish the resulting TabsStudioGuide\bin\Debug\TabsStudioGuide.vsix on Visual Studio Gallery or on your own site. When another developer installs your extension, he will create a new project from your template and the guide with documentation, source code and helper links will be ready for him to learn:

The new project dialog to open the Tabs Studio Guide

The new project dialog to open the Tabs Studio Guide


Tabs Studio Guide opened in Visual Studio 2010

Tabs Studio Guide opened in Visual Studio 2010


Extension Manager with the TabsStudioGuide extension installed

Extension Manager with the TabsStudioGuide extension installed

Instant Feature Builder is a free open source extension for Visual Studio 2010. You can download the installer and source code from CodePlex.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

March 14, 2012

EventHandler Naming extension for Visual Studio 2010

Filed under: Reviews — Tags: , — Sergey Vlasov @ 7:56 am

EventHandler Naming extension by Einar Egilsson lets you customize the name format for event handlers automatically generated by Visual Studio 2010.

When you subscribe to a control event in the C# Windows Forms designer, Visual Studio generates a method for you in the button1_Click name format. It is hard to imagine a coding standard that accepts this naming convention. EventHandler Naming lets you change this, for example, to OnButton1Click.

In EventHandler Naming options, accessible from the ToolsEvent Handler Naming menu item, you can customize the name pattern and case for the site/event names:

EventHandler Naming Options dialog

EventHandler Naming Options dialog


Site and event name case options

Site and event name case options

If you use type prefixes for your controls like lbl or btn, EventHandler Naming can remove them from a handler name. For form event handlers like OnForm1Load, EventHandler Naming can remove the form name and generate just OnLoad if you check the Omit $(SiteName) for own events option.

Functionality described above works for Windows Forms and Web Forms designers in C#, Visual Basic and C++/CLI projects. The WPF/XAML designer is not supported because it lacks needed extensibility points.

There is one more place when Visual Studio generates event handlers for you. If you are manually subscribing for an event in C# and type, for example, button1.DragDrop +=, Visual Studio prompts you to press TAB to generate an event handler method. EventHandler Naming supports this scenario as well. Plus, if you check the Use delegate inference option, instead of button1.DragDrop += new DragEventHandler(OnButton1DragDrop); more shorter code will be generated: button1.DragDrop += OnButton1DragDrop;.

EventHandler Naming is a free extension for Visual Studio 2010. You can download it from Visual Studio Gallery. Source code is available on GitHub.

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

Follow

Get every new post delivered to your Inbox.