Can I make RPC calls to IntelliJ
Answered
I do not know if I have to write a plugin or not, but what I want to do is call IntelliJ menu functions or macros from another process. For example Save All (CTRL-S) from another process.
Does IntelliJ expose a Rest Service that can be used for this or do I have to write a plugin which will run a web server, take instructions and then execute those functions on IntelliJ ?
Thanks
Jay
Please sign in to leave a comment.
You'll need a plug-in. https://github.com/zolotov/RemoteCall could be a starting point.
Thanks..but on that page they talk about "HTTP requests in using built-in IntelliJ Rest API." So does InterlliJ has some kind of built in REST endpoint ?
Jay
Yes, it does. You can open files, projects, do diff and that's all. You can't call menu actions, use code templates, etc.
Is this documented some where ? http://develar.org/idea-rest-api/#api-Platform-file is what i found but it does not look like its from JB
Thanks Serge
Jay
It's the doc generated with https://github.com/JetBrains/intellij-community/blob/master/build/restApiDocGenerator/gulpfile.js.
See also https://github.com/develar/develar.github.io/tree/master/idea-rest-api.
@develar is Vladimir Krivosheev from JetBrains team, so you can consider it the official documentation.
Thank you Serge.