This tutorial describes how to setup IntelliJ to edit, run and debug ANTLRWorks and its plugin for IntelliJ. This tutorial uses path example for Windows but the steps are exactly the same for Linux or Mac OS X.

What you need

Create the project in IntelliJ

Add the source code of ANTLRWorks to the project

We will now add the source of ANTLRWorks to the project we just created in IntelliJ.

Run ANTLRWorks from IntelliJ

Configure the ANTLRWorks plugin

In order to edit, run and debug the ANTLRWorks plugin for IntelliJ, we will need to create another module specifically designed for this task.

Now let's add the necessary dependencies:

Let's create the configuration that will enable us to launch the plugin in another instance of IntelliJ: