Visual Studio Hacks
Tools Tweaks

VSTweak

by javery on March 1, 2008

Overview

VSTweak is a small windows application that can be used to modify a number of hard to find settings. Using this small utility you can configure dynamic help, most recent lists, command aliases, file extensions, and more. This overview will walk through each of the various tabs and cover what settings can be manipulated from that tab.

IDE Settings

The first tab contains an odd assortment of Visual Studio settings. The first section on this tab is the Help Settings section which provides an interface to enable or disable two parts of dynamic help. Dynamic Help is the name given to the feature that will automatically suggest help topics based on the context of what you are doing. Dynamic Help can be a great feature, but it also tends to slow down the IDE. If you don’t find that you benefit from dynamic help then disabling it here can speed up the IDE.

The second section, Import or Export Keyboard Bindings, is an easy to use interface for the management of keyboard bindings. Simply select the keyboard bindings that you want to export, click the export button, than select where to save the file. After saving the file you will then need to copy it to your new system, where you can then open VSTweak, click the Import button, and select your keyboard bindings file. Using this method you can move your configured keyboard bindings from system to system.

The last section on this tab, Clear History, can be used to clear a number of different history lists that exist in Visual Studio. These include the command list, browser history list, find history, as well as the replace history.

Alias Manager

The Command Window can be used in the IDE to quickly execute any command, without reaching for the mouse. Anything you can do from a menu or toolbar can also be done through the command window. One feature that helps make the command window so easy to use is the alias. An alias is simply a shortcut, or pointer, to a command. For example, instead of typing “File.Close” you can just type “close”. Normally you have to manage command aliases through the command window, but VSTweak provides a nice graphical interface to see all the existing aliases, edit existing aliases, or create new ones. Using the Available Commands button you can view all of the existing commands, and using the View File button you can peek into the actual alias file.

MRU Lists Manager

The File MRU list shows the files that you have recently opened, and the Project MRU list shows the projects that you have recently opened. This tab provides an interface for you to add, remove, or clear out these lists.

One issue that often arises from these lists starts when you open a file or project that is located on a network share. At a later time when you open Visual Studio, and you are no longer connected to the network share, Visual Studio can hang while it tries to access that file. To resolve this issue simply navigate to this tab and remove the files or projects located on the unavailable network share.

File Extensions Manager

Unlike many other applications Visual Studio has the capability to handle a large number of different file extensions. Using the interface on this tab you can add even more extensions to Visual Studio. First you simply need to enter the extension you want to add, and then select what extension your new extension should be treated as. A great example of when you might want to use this is when there is a custom extension that should be treated as a normal type, for instance you might want to add .cst files (Files for the CodeSmith tool) to be treated as .aspx files. This will give you some color coding and other features when designing CodeSmith templates. Another frequent use is custom extensions that should be treated as XML, for instance you might be using a tool that takes a configuration files with the extension of .xconf, and you could add this extension and have it treated as an XML file.

Debug editor

The debug editor is an easy way to edit the mcee_cs.dat file. This file is used to configure how an object is displayed in the debug windows (auto, watch, locals, etc.). Normally a custom class simply displays the name of that class, using this file you can configure Visual Studio to display something different. (Usually a property of that class)

I will not go into the details of how to do this as you can access an excellent example and walkthrough by click on the step by step example linked to on the bottom left of the tool.

Download

blog comments powered by Disqus

Previous post: SccSwitch

Next post: Welcome to Visual Studio Hacks!