0

I know that we can do a Ctrl A + Ctrl C on the error list to copy all items in the error list. I want to automate this using Visual Studio Macros.

DTE.ExecuteCommand("Edit.SelectAll");

is not working for me. It says "Command Edit.SelectAll is not available". What could be done to do a Ctrl A operation using Visual Studio Macro?

1 Answers1

0

You can use SendKeys to emulate Ctrl A when the Error List window is selected:

System.Windows.Forms.SendKeys.Send("^a");
Sergey Vlasov
  • 26,641
  • 3
  • 64
  • 66