3

Is it possible to define custom compiler for particular file type in IntelliJ IDEA ? I found how to define custom formatting though.

I have bunch of *.proto files in my project. It would be nice if I have define external executable that compiles them into .java files that javac will further compile.

expert
  • 29,290
  • 30
  • 110
  • 214

1 Answers1

2

Doesn't the protobuf plugin (http://plugins.intellij.net/plugin/?idea&id=4942) do this for you?

If not, you should create a plugin and implement TranslatingCompiler there. See, for example, Groovy plugin source for the code samples.

Peter Gromov
  • 17,615
  • 7
  • 49
  • 35