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

 

0
6 comments

You'll need a plug-in. https://github.com/zolotov/RemoteCall could be a starting point.

0

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

0

Yes, it does. You can open files, projects, do diff and that's all. You can't call menu actions, use code templates, etc.

0

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

0

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.

0

Please sign in to leave a comment.