更新时间:2022-12-18 21:58:17
我找到了一个可以用 android studio 生成类图的免费插件.它被称为SimpleUML.
更新 Android Studio 2.2+:要安装插件,请按照此答案中的步骤操作:https://***.com/a/36823007/1245894>
旧版 Android Studio在 Mac 上:转到 Android Studio
-> Preferences
-> Plugins
在 Windows 上:转到 Android Studio
-> File
-> Settings
-> Plugins
点击Browse repositories...
并搜索SimpleUMLCE(CE 代表 Community Edition,这是 android studio 的基础).
安装它,重新启动,然后您可以右键单击包含要可视化的类的文件夹,然后选择Add to simpleUML Diagram
.
就是这样;你有你的代码生成的类图!
I've try to search and found this link, but Ctrl+Alt+Shift+D doesn't work.
I also use find Action Ctrl+Shift+A to find action about diagram and uml but found nothing.
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).
I found a free plugin that can generate class diagrams with android studio. It's called SimpleUML.
Update Android Studio 2.2+: To install the plugin, follow steps in this answer: https://***.com/a/36823007/1245894
Older version of Android Studio
On Mac: go to Android Studio
-> Preferences
-> Plugins
On Windows: go to Android Studio
-> File
-> Settings
-> Plugins
Click on Browse repositories...
and search for SimpleUMLCE
(CE means Community Edition, this is what android studio is based on).
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
.
That's it; you have you fancy class diagram generated from your code!