CLion 2016.3 Help

JavaScript-Specific Guidelines

With CLion, you can develop modern web, mobile, and desktop applications with JavaScript and Node.js. CLion supports JavaScript and TypeScript programming languages, React and Angualr frameworks and provides tight integration with various tools for web development.

In this section:


Before you start working with JavaScript, make sure that the JavaScript Support plugin is enabled. The plugin is bundled with CLion and is activated by default. If it is not, enable the plugin as described in Enabling and Disabling Plugins.

JavaScript support

JavaScript files are marked with /help/img/idea/viewAsJSON.png icon.

JavaScript support in CLion 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 CLion and activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
  2. Create a project to implement your application.
  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 CLion 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 CLion default browser.
  8. Debug your application.

    The JavaScript debugging functionality is incorporated in CLion, 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.

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

See Also

Last modified: 22 November 2016