Skip to content

Configure IntelliJ IDEA

hiperbou edited this page Feb 27, 2021 · 7 revisions

First we need to add an external tool to run a batch file that will copy the compiled code to our Content folder.

Go to (or a similar directory depending on your IDEA version):

C:\Users\[YOUR_USER]\AppData\Roaming\JetBrains\IdeaIC2020.3\

Open the file tools\External Tools.xml or create the "tools" directory and the file in case it doesn't exists.

We will add a tool named "copyjs" that will the call the batch "copyjs.bat", so modify the "External Tools.xml" file to something like this.

<toolSet name="External Tools">
  <tool name="copyjs" showInMainMenu="false" showInEditor="false" showInProject="false" showInSearchPopup="false" disabled="false" useConsole="false" showConsoleOnStdOut="false" showConsoleOnStdErr="false" synchronizeAfterRun="true">
    <exec>
      <option name="COMMAND" value="$ProjectFileDir$\copyjs.bat" />
      <option name="PARAMETERS" />
      <option name="WORKING_DIRECTORY" value="$ProjectFileDir$" />
    </exec>
  </tool>
</toolSet>

Alternatively, you can add the external tool using the IDE following the following instructions

Here you can see the configuration needed.

Clone this wiki locally