Programmatically set "Generate *.iml files for modules imported from Gradle"
已回答
For our multi-module Python Gradle projects, native gradle import usually fails and we have to check the “Generate *.iml files for modules imported from Gradle” under Settings → Build, Execution, and Deployment → Build Tools → Gradle. After this is checked, we can re-run the Gradle sync/import logic.
Is there a way to programmatically check this box in a plugin so that our users don't have to manually do so each time?
请先登录再写评论。
org.jetbrains.plugins.gradle.settings.GradleSettings#setStoreProjectFilesExternallyYou can use UI Inspector to find such things easily https://plugins.jetbrains.com/docs/intellij/internal-ui-inspector.html