IntelliJ IDEA 12.1.0 Web Help

Some features described here are available in Ultimate edition only.

IntelliJ IDEA enables creating rich Internet applications and Web applications by providing elaborate support of JavaScript and tight integration with AJAX and other adjacent frameworks and technologies.

In this section:

Prerequisites

Note

Before you start working with JavaScript, make sure that JavaScript Support plugin is enabled.

The plugin is bundled with IntelliJ IDEA and activated by default. If it is not, enable the plugin.

JavaScript support

JavaScript files are marked with viewAsJSON icon.

JavaScript support in IntelliJ IDEA includes:

To develop an application that contains JavaScript

Developing an application that contains JavaScript, generally, includes performing the following steps:

  1. Make sure the JavaScript Support plugin is enabled. The plugin is bundled with IntelliJ IDEA and activated by default. If it is not, enable the plugin.
  2. Create a project to implement your application. On the first page of the New Project wizard, select Web Module.
  3. On the JavaScript page of the Settings dialog box, choose the JavaScript language version that suits the targeted browser.
  4. Download, install, and configure JavaScript frameworks and libraries.
  5. Populate the project. Use the following IntelliJ IDEA facilities, where applicable:
  6. Improve the quality and maintainability of your code using various types of refactoring, both common and JavaScript-specific.
  7. Run your application by opening its starting HTML page in the IntelliJ IDEA default browser.
  8. Debug your application.

    The JavaScript debugging functionality is incorporated in IntelliJ IDEA, so just configure the debugger, whereupon you can start the debugging session and proceed as usual: set the breakpoints, step through them, stop and resume the program, and examine it when suspended.

    Note

    Debugging for JavaScript applications is supported only in the Firefox and Google Chrome browsers.

See Also

Concepts:

Language and Framework-Specific Guidelines:

Reference:

Web Resources: