RubyMine 2017.1 Help

Running JavaScript in Browser

In this section:

To run a file with JavaScript from RubyMine

No run configuration is required for launching applications with injected JavaScript from RubyMine. You just open the HTML page with the reference to the required script in the browser and that's it.

This method works if you do not have a default deployment configuration. To check that, choose Tools | Deployment | Configuration. In the left-hand pane of the Deployment dialog that opens, the default configuration is shown in bold. To remove this status, select the configuration and click the Use as Default toolbar button icon_use_web_server_configuration_as_default.png, see Creating a Remote Server Configuration for details.

  1. In the editor, open the HTML file with the JavaScript reference. This HTML file does not necessarily have to be the one that implements the starting page of the application.
  2. Do one of the following:
    • Choose View | Preview file in on the main menu or press Alt+F2. Then select the desired browser from the pop-up menu.
    • Hover your mouse pointer over the code to show the browser icons bar: /help/img/idea/2017.1/browserIcons.png Click the icon that indicates the desired browser.

See Also

Last modified: 18 July 2017