Configure TruWeb for your IDE

You can build a TruWeb script using your favorite IDE or text editor.

This topic provides examples for working with some common tools.

Scripting TruWeb with JetBrains WebStorm (IntelliJ)

This example demonstrates how to create a TruWeb script using WebStorm (IntelliJ). You can use the existing EmptyScript template as a base.

To set up and write the script:

  1. Copy the EmptyScript folder from \<TruWeb installation>\examples\ to a location on the same machine as TruWeb.
  2. Rename the folder, for example, MyTruWebProject.
  3. In WebStorm, open the MyTruWebProject project.
  4. In the Project view, under the MyTruWebProject project, open main.js to start writing your code.
  5. To enable running the script in WebStorm, set up WebStorm to use the TruWeb executable:

    1. Select File > Settings.
    2. Select Tools > External tools, and click the + button.

    3. Configure TruWeb as follows:

      Click OK.

Back to top

Scripting TruWeb with Atom.io

This example demonstrates how to create a TruWeb script using Atom.io.

To set up and write the script:

  1. Prerequisite: Download and unzip the TruWeb plugin file for Atom.io:

    • Windows. Unzip to C:\Users\<user name>\.atom\packages
    • Linux/MacOS. Unzip to ~/.atom/packages

    When you open Atom.io, the TruWeb menu should appear.

  2. Copy the EmptyScript folder from \< TruWeb installation>\examples\ to a location of your choice.
  3. Rename the folder, for example, MyTruWebProject.
  4. In Atom, open the MyTruWebProject folder and double-click main.js in the project tree to start writing your code.

Back to top

See also: