Generate sequence diagrams with Visual studio 2010

Cool! I’ve just discovered this new feature in Visual Studio 2010 (Beta 2) where you can generate a sequence diagram from your code. This should take the hard bit out of generating documentation from your code :)

Here’s a screen shot:

image

The only thing you need to to is to point to the method you want to see a sequence diagram for, right-click and choose Generate Sequence Diagram…

image

Then Visual Studio will ask you how deep you want to go, which classes/methods to include in the sequence diagram:

image

And then you can start making changes to the diagram:

image

image

Nice!