Search code examples
visual-studiointellij-ideadiagram

How to view relationships between classes as a visual diagram?


when joining an existing project it can become confusing trying to figure out how all the classes and interfaces are connected to each other. Instead of going to individual classes and following its relationships, is there a way to visually see all the connections in a diagram? Is there anything that can be done in IntelliJ(11 | 12) or Visual Studio(2010 | 2012 - preferably express or pro)?

For example, something like a UML diagram showing class A inherits from class B which extends a certain interface, etc.

Similar functionality is in Eclipse where you can view a graphical representation of a bean config file. Also in Visual Studio you can view the DB relationships


Solution

  • I am not sure what version of Visual studio you are using but in VS 2012 pro (Update 2) you can right click on a project and click the "View Class Diagram" option. This will Create a diagram of all classes in the project.

    http://msdn.microsoft.com/en-us/library/6x35cds6.aspx

    Looks like capability goes as far back and 2010 and even 2008.