Article directory
About the role of class diagrams
The class diagram feature is provided in Visual Studio 2019, which can directly convert classes into the form of class diagrams.
When developing software, classes are often represented in the form of class diagrams during the detailed design phase.
Use the class diagram to clearly see the properties, methods, etc. contained in the class
How to View Class Diagrams
① New item under the current project
② Find the class diagram
But some friends may find that the class diagram cannot be found in the drop-down menu. At this point it may be because the original installation of Visual Studio 2019 did not install the relevant components.
The following will address this issue.
Visual Studio 2019 Reinstall Components
① Find it under the Start menu Visual Studio Installer
, run it
② Select 修改
③ 工作负荷
Find it under the column Visual Studio 扩展开发
④ and select it ⑤ Wait for the download and installation + restart Visual Studio 1, Ctrl + Shift + A to enter the Add item panel 2, Scroll down to find the class diagram 3, General add 4 , Drag the pre-viewed file into it and wait for it to load for a while~
单个组件
类设计器
5. Get the class diagram
Summarize
If you want to add or reduce components, you can go to this interface again, select 修改
and operate