Running JavaScript in Browser
Last modified: 19 May 2021Available only in PyCharm Professional: download to try or compare editions
To run a file with JavaScript from PyCharm
tip
This method works if you do not have a default server 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
. See Create 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 View | Open in Browser from the main menu or press Alt+F2. Then select the desired browser from the list.
Hover your mouse pointer over the code to show the browser icons bar:
. Click the icon that indicates the desired browser.
Thanks for your feedback!