Using IntelliJIdea PSI and Refactoring Programatically
Answered
Hi all,
I'm sorry if this is a repeated post, but I'm trying to use the refactoring/PSI API outside of the IDE/plugin. I tried using the gradle-intellij-plugin but I wasn't able to import the PsiClass with it. Is there a way to use the IntelliJIdea refactoring library outside of the IDE?
Best regards,
Max Ellis
Please sign in to leave a comment.
This is far from trivial. You can find some starting pointers here https://intellij-support.jetbrains.com/hc/en-us/community/posts/205973424-Standalone-Parser-Dependencies
What do you want to build?
Hi Yann,
Thank you for the quick response. I would like to build an application that performs refactorings without having IDEA installed. Is this something I can do?
I noticed that in the link you provided, the solution is to run the code I want with the -verbose:class option and place all mentioned classes in a jar. Is this something you would recommend or are there any other directions you would suggest?
Best regards
TBH that sounds rather impossible at the moment.