VS2010 – (auto) Generate Sequence Diagram

by Danielvg 22. December 2009 18:49

Instead of booting up Visio and spending hours creating sequence diagrams, Visual Studio 2010 now has a build in feature for creating sequence diagrams!

Being a student, that too often have to make somewhat pointless sequence diagrams, I nearly jumped out of my seat when I saw this feature demonstrated at “best of pdc 09”!

This is how easy it is; right click a method, press “Generate Sequence Diagram…”…

image

A few seconds later the sequence diagram is created, and in this case the result is:

image

Should you want to edit the generated diagram then the toolbox gives you the basics for this:
image

For some this might seem like a useless feature, but it really helps when you need to understand code made by others (and in some cases, save a few hours of Visio work).

A note for students: I am guessing this is an Ultimate only feature, but it seems dreamspark will be offering VS2010 Ultimate so it should be no problem getting it!