In this post, App Dev Manager Ed Tovsen spotlight the features and benefits of Code Maps in Visual Studio.


Systems architects have long used modeling to design the structure, behavior, and interaction of systems within an organization. Modeling helps to ensure that requirements are clearly defined between users and IT. Models are created with varying levels of detail throughout the application lifecycle and used as part of the development process. Typically, modeling tools assist architects in the initial stages of application conceptualize and construction. However, there are also visualization tools to comprehend existing code and find potential problems. Being able to visualize code allows for the following:

  • Learn relationships between different potions of code.
  • Map dependencies for an entire solution.
  • Understand how application modification will affect the existing code.
  • Assess the coding modifications and possible risks that may result from those changes.

The following table shows the availability of each architecture tool in Visual Studio.


UML designers have been removed from Visual Studio 2017 due to lack of usage within the community.

Code Maps

This blog article is a quick start for code maps, the visualization tool provided with Visual Studio. Code maps provide the following capabilities.

  • When debugging, a code map allows a user to visually comprehend relationships within applications and methods on the call stack.
  • When executing a code review, a code map can be a tool used during the systematic examination to find vulnerabilities.
  • When working with unfamiliar or legacy code, a code map provides navigation with a visual experience.

If the Architecture item does not appear in the Visual Studio menu, please follow these steps to install code map. Execute the Visual Studio Installer and select the Individual components item. Scroll down to Code tools, check the box next to Code Map, and click on the Modify button.

In order to generate a code map for an existing solution, click on the Architecture item in the Visual Studio menu and select Generate Code Map for Solution.

After the code map is generated, the diagram is displayed.

Browse and rearrange the code map by expanding, grouping, filtering, and drilling-down the elements within the diagram.

Lastly, Visual Studio includes code map analyzers to identify complex code that could possibly be improved. To run the code map analyzers, click on the Layout item in the Code Map menu, click Analyzers, and select the analyzer (Circular Reference Analyzer, Find Hubs Analyzer, Unreferenced Nodes Analyzer).

While architects are experienced using modeling tools to design systems, they may not be familiar visualizing applications that have been previously written. Code maps are that tool for understanding existing code. Architects can compare design models to actual code, and developers can debug and review code.

最新文章

  1. ENGLISH抠脚童鞋的福利--GitHub汉化插件
  2. 浅谈Java泛型之<? extends T>和<? super T>的区别
  3. Makefile的学习笔记
  4. 使用MVVM框架avalon.js实现一个简易日历
  5. 【BZOJ】1106: [POI2007]立方体大作战tet
  6. WordPress学习
  7. 会动的大风车(css3)
  8. C# 使用ManualResetEvent 进行线程同步
  9. Android 快捷方式
  10. 反调试技术(Delphi版)
  11. JS拖动DIV布局
  12. Objetive-C 中的相等比较
  13. OpenStack Pike超详细搭建文档 LinuxBridge版
  14. vue获取当前对象
  15. MySql新增表的字段,删除表字段
  16. TabLayout下划线指示器自适应文字宽度
  17. linux_OEL5.4_安装Oracle11g中文教程图解
  18. nginx的变量参数 详解
  19. LeetCode-Valid Number - 有限状态机
  20. java 实现md5加密的三种方式与解密

热门文章

  1. 多线程(3)ThreadPool
  2. 第一个Web应用
  3. Go开发之路 -- 流程控制
  4. 自然语言处理(nlp)比计算机视觉(cv)发展缓慢,而且更难!
  5. Access denied for user 'root'@'localhost' (using password:YES) Mysql5.7
  6. c#高级编程_第10版 云盘地址
  7. SQLServer之修改存储过程
  8. c/c++ 继承与多态 容器与继承1
  9. 把exe注册为windows服务
  10. 产品设计-后台管理权限设计RBAC