如何在Android Studio上生成类图(UML)(IntelliJ Idea) [英] How to generate Class Diagram (UML) on Android Studio (IntelliJ Idea)

查看:4638
本文介绍了如何在Android Studio上生成类图(UML)(IntelliJ Idea)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试搜索并找到此 链接 ,但 Ctrl + Alt + Shift + D 不起作用。

I've try to search and found this link, but Ctrl+Alt+Shift+D doesn't work.

我还使用find Ctrl + Shift + A 查找有关图表和uml的操作,但一无所获。

I also use find Action Ctrl+Shift+A to find action about diagram and uml but found nothing.

我还 搜索uml插件
,但大多数都没有使用新版本的intelliJ(我没试过,我只是阅读了评论)。

I also search for the uml plugin, but most of them didn't work with new version of intelliJ (I didn't try it I just read the comment).

推荐答案

我找到了一个可以用android studio生成类图的免费插件。
它叫做 SimpleUML

I found a free pluggin that can generate class diagrams with android studio. It's called SimpleUML.

更新Android Studio 2.2 +:
安装插件,请按照以下答案中的步骤操作: https://stackoverflow.com/a/36823007/1245894

旧版Android Studio
在Mac上:转到 Android Studio - > 偏好设置 - > 插件

Older version of Android Studio On Mac: go to Android Studio -> Preferences -> Plugins

在Windows上:转到 Android Studio - > 文件 - > 设置 - > 插件

On Windows: go to Android Studio -> File -> Settings -> Plugins

点击浏览存储库... 并搜索 SimpleUMLCE
(CE表示社区版,这是android studio的基础)。

Click on Browse repositories... and search for SimpleUMLCE (CE means Community Edition, this is what android studio is based on).

安装它,重启,然后就可以了右键单击包含要显示的类的文件夹,然后选择添加到simpleUML Diagram

Install it, restart, then you can do a right click on the folder containing the classes you want to visualize, and select Add to simpleUML Diagram.

就是这样,你有你喜欢的类图ge来自您的代码!

That's it, you have you fancy class diagram generated from your code!

这篇关于如何在Android Studio上生成类图(UML)(IntelliJ Idea)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆