Create/Execute External Tool Command From Plugin

Basically from a plugin, actually the new scripting console (which is awesome!!), I want to do some calculations then execute some random unix command and display the results.
There has to be a simple way to do this as the external tools do exactly what I want. I just need to do it from inside a plugin.

Something like...
ExternalTool.getInstance().exec("ls") // will open the terminal/console in intellij and stream the output of the command

Any pointers/direction?


1 comment
Comment actions Permalink

Actually, it's part of private API but you may try to add idea.jar to the classpath of IntelliJ PLugin SDK and implement extension point "com.intellij.toolsProvider" from


Please sign in to leave a comment.