IntelliJ IDEA plugin that generates UUID directly into empty string literals via intention action.
- Place cursor inside an empty string literal (
"") - Press
Alt+Enter(orOption+Enteron Mac) to show intentions - Select "Generate UUID" to insert a random UUID
- Java
- Kotlin
- JSON
- YAML
- XML
- Plain text
- Build the plugin:
./gradlew buildPlugin - The plugin ZIP will be in
build/distributions/ - In IDEA: Settings → Plugins → ⚙️ → Install Plugin from Disk...
- Select the ZIP file and restart IDEA
Run IDEA with the plugin:
./gradlew runIdeval id = "" // place cursor here, press Alt+Enter → Generate UUID
// Result: val id = "550e8400-e29b-41d4-a716-446655440000"./gradlew buildPlugin- IntelliJ IDEA 2024.1+
- JDK 17+