The freemium Visual Commander extension lets you automate repetitive tasks in Visual Studio "15"/2015/2013/2012/2010. 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:
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.
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:
You can record your keystrokes and text editing commands from the Visual Studio text editor as a macro and play it back multiple times:
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 in Visual Studio 2012+:
The recorded code sets all Find options, performs search and verifies that the text is found:
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.
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:
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.
Copyright 2008 - 2016 Vlasov Studio (Visual Studio add-ins, extensions and tools)