Use code MAP to understand complex code 1--visual Studio2012

Source: Internet
Author: User
Tags microsoft dynamics

The first time I knew the code map was in the Visual Studio Ultimate of the explanation above, at that time feel very curious, so checked, the results of a search for several days. The original Visual Studio Ultimate has so many things I don't know.

What is code map?

Simply put, this tool is like a reverse tool, can help us to see the Class relationship , Function Relationship, with a graph associated with, and even can point two, after a quick look With this feature, you will want to use the impulse of double screen more. such as:

You can see that the program class has three methods.

You can see language do not know what is, you can double-click, right click on the selected on the graph "Show on the graph", click language, the property box is shown below. Know that this is an enumeration type and is used as a query result.

So what is the result of this query? As you can see, this query result is used for the greetpeople method.

Create or open a code map

To create a code map, you need 2 and have Visual C #. NET,visual Basic. NET, for Microsoft Dynamics AX x + + or C + + Code (limited support) solutions. You can create a code map in the following ways . The author says that the code map is not in this plugin, but vs comes with, if you do not only say your vs2012 It needs to be updated.

Specific use:

L Right-click an item in Solution Explorer, such as a source or binary file, and then select Show on Map. This creates a code map for the selected item.

L Drag an item, such as a source file or a binary file, from Solution Explorer onto the open code map to include and / or highlight the item in the diagram.

L Right-click an empty area of the editor window and select Show on map . This creates a new, empty code map.

L Right-click an object or class in the editor window and choose Show on Map. This creates a code map for the selected item. You can also use this menu to find all references in a code map or to display related items.

L when the application pauses, on the Debug menu, click the Code Map button.

L from an open IntelliTrace file, or from the architecture Menu as the the dependency graph.

L before you share a map with other people who use Premium or Professional versions, make sure that all items on the map are visible, such as hidden items, Expanded groups and cross-group links

Here, I often use an open IntelliTrace file, or a dependency graph from the architecture menu . as long as the ctrl I need to create a new diagram of the class or method (field, etc.) can be generated automatically.

Use code MAP to understand complex code 1--visual Studio2012

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.