Home Professional Edition Commands Extensions SSMS Resources What's New

Visual Commander Visual Commander

The freemium Visual Commander extension lets you automate repetitive tasks in Visual Studio 2017/2015/2013/2012 and SSMS 2016. You can reuse existing Visual Studio macros from previous versions of the IDE and create new commands and extensions in C# or VB. You can also record and playback keyboard commands for the Visual Studio text editor:

Visual Commander menu in Visual Studio 2013

A command is a class written in C# or VB implementing the Run method. It has full access to the Visual Studio automation model and .NET framework. Code of an existing Visual Studio macro from previous versions of Visual Studio can be just pasted in the Run subroutine of a new VB command. See command examples.

Sample command code

You can run the created command directly from the command editor, from the VCmd menu, from the Commands window by double-click or with the Run button. You can assign a keyboard shortcut to a command and you can add commands to the Visual Studio toolbar:

Keyboard shortcut assignment

Toolbar commands

You can record your keystrokes and text editing commands from the Visual Studio text editor as a macro and play it back multiple times:

Sample macro code

Keyboard shortcuts Ctrl+Shift+R and Ctrl+Shift+P are assigned to the Record Macro and Run Macro commands if they are not used in your Visual Studio keyboard scheme. If they are used, but you want to reassign them to Visual Commander, you can manually assign them in Visual Studio keyboard options for the VCmd.RecordMacro and VCmd.RunMacro commands.

There is only one macro - recording the new macro overwrites the previous one. If you want to save the macro for future regular use, you can manually copy its code to a new command or use the explicit Save Macro as Command menu item.

You can record Find Next and Find Previous commands from the Find and Replace dialog:

Find and Replace dialog in Visual Studio 2013

The recorded code sets all Find options, performs search and verifies that the text is found:

Recorded find command

You can record a macro in VB or C#. Just change the language before the recording (go to VCMD - Edit Macro..., select the desired Language, Save and close the macro editor). The language selected will be also used as default for new commands and extensions.

In an extension you can hook to Visual Studio events (e.g. build events, window and document operations, solution and project loading, debugger events) and automatically perform custom tasks when needed. Extension are loaded by Visual Commander on Visual Studio startup and when you press Install in the extension editor dialog. See extension examples.

Sample extension code

The References dialog lets you add external assemblies for your code. For assemblies in the GAC you can specify a short or a full name. For other assemblies you need to specify the full path. References are separated by new lines:

Sample references

You can export selected commands and extensions into a .vcmd file to share with others and for backup purposes:


During import, commands and extensions from the file are added to your existing ones. Added extensions are not executed immediately after importing, you can manually Edit and Install them or restart Visual Studio.

Visual Commander settings (commands, extensions and the temporary macro) are stored in "%APPDATA%\Sergey Vlasov\Visual Commander\1.0\snippets.vcmd".

The free edition supports up to 10 commands and 5 extensions, the professional edition supports up to 99 commands and 50 extensions.

Visual Commander v2.6.3 - February 24, 2017. Download Now


Organize Visual Studio tabs with Tabs Studio add-in