0

I want to use this macro to format my code:
http://www.kodefuguru.com/post/Format-Solution.aspx

I guess I need to the change line:

Dim sol As Solution = DTE.Solution

My solution appears in Visual Studio 2010 like so:
Solution 'ABC.Mmc.Client' (16 Projects)

I've tried changing the line to:

Dim sol As Solution = ABC.Mmc.Client.Solution  

but that doesn't work.
What do I need to do?

numberwang
  • 313
  • 1
  • 6
  • 22

1 Answers1

1

DTE.Solution refers to the currently loaded solution. Leave the code as it is, load your solution, and you're good to go.

RichieHindle
  • 272,464
  • 47
  • 358
  • 399