Usefull shortcut to automatically attach to a certain process
I was tired of doing Crl + Alt + p to launch to Attach To Process dialog, press m to select maya and finally press Enter. So I was looking to automate this and came across a useful extension called Visual Commander
Install the Visual Commander extension (Tools -> Extensions and Updates -> Online)
Description from the site:
The freemium Visual Commander extension lets you automate repetitive tasks in Visual Studio 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
This will add a new menu item called VCMD. Add a new command with the following code;
Dim proc For Each proc In DTE.Debugger.LocalProcesses If proc.Name.ToString().EndsWith("maya.exe", StringComparison.OrdinalIgnoreCase) Then proc.Attach() System.Diagnostics.Debug.WriteLine("Attached To Maya") Exit Sub End IF Next MessageBox.Show("Maya process not found", "Attach To Maya")
Visit http://vlasovstudio.com/visual-commander/ To create a hotkey for your commands.