This feature is supported in the Ultimate edition only.
In this section:
No run configuration is required for launching applications with injected JavaScript from IntelliJ IDEA. 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 . 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
,
see Creating a Remote Server Configuration for details.
- 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.
-
Do one of the following:
- Choose on the main menu or press ⌥F2⌥F2⌥F2⌥ F2⌥ F2. Then select the desired browser from the pop-up menu.
-
Hover your mouse pointer over the code to show the browser icons bar:
Click the icon that indicates the desired browser.