runIde
task is a Java Exec task and can be modified according to the documentation.
To add some JVM arguments while launching the IDE, configure runIde
task as follows:
runIde {
jvmArgs '-DmyProperty=value'
}
Using the very same task documentation, configure runIde
task:
runIde {
systemProperty('name', 'value')
}
Configure runIde
task as follows:
runIde {
autoReloadPlugins = false
}
Building searchable options can be disabled as a task:
buildSearchableOptions.enabled = false
As a result of disabling building searchable options, the configurables that your plugin provides won't be searchable in the Settings dialog.
Running Gradle tasks from IntelliJ IDEA produces a Gradle run configuration which can be run in debug mode just as any other run configuration:
prepareSandbox
task is a Sync task and can be modified accordingly. Something like following should work:
prepareSandbox {
from('yourFile') {
into "${intellij.pluginName}/lib/"
}
}
The most convenient way to see the logs of running IDE is to add a tab to Run tool window displaying the content of idea.log
file:
To do this, you need to add the log file in Gradle run configuration settings: