Building an IDE plugin for clean code generation
summary
Builds an Android Studio plugin that clones API DTOs into editable domain models, recursively generates mappers, repository interface and implementation, DI module and unit tests, and produces hundreds of lines in seconds using IntelliJ platform APIs. It uses the Kotlin Analysis API and the PSI viewer to resolve types, a visitor to deep-clone classes, and wraps disk writes with executeWriteCommand or an in‑memory staging step to produce a single undoable action. It intentionally aborts on Map return types and ships a public repo.
AI-written summary · about
chapters (6)
- 0:00Introduction and motivation
- 0:39Problem analysis
- 3:46IntelliJ plugin foundations
- 12:47Demonstration of the plugin
- 16:17Deep dive into implementation
- 26:38Writing files and conclusion
related talks
42mWrite your own Android Studio Plugin and automate everything
33mMake your Android Studio Plugin
28mFrom Idea to IDE: Developing Plugins for Android Studio
26mEnough with scripts, let's create an Android Studio plugin?
39mFantastic Plugins and Where to Find Them
21mSupercharge Android Studio: Developing Your First Plugin
59mIntelliJ IDEA – The IDE That Speaks Gradle
01h 13mService Plugin
