3 ms·
I haven't used it but as far as I know, you can write refactoring scripts using Kotlin or other languages within Intellij, see Tools -> IDE Scripting Console.
by mushishi 6y ago
I haven't used it but as far as I know, you can write refactoring scripts using Kotlin or other languages within Intellij, see Tools -> IDE Scripting Console.
The available interface should be the same
as what it is for plugins: https://plugins.jetbrains.com/docs/intellij/psi-cookbook.html https://plugins.jetbrains.com/docs/intellij/psi-cookbook.htm...
These should be useful imports:
* com.intellij.psi.JavaPsiFacade
* com.intellij.refactoring.RefactoringFactory
If someone knows better, happy to be educated on this!
https://www.jetbrains.com/help/idea/ide-scripting-console.html https://www.jetbrains.com/help/idea/ide-scripting-console.ht...