IntelliJ IDEA 2016.3 Help

Previewing Pages with Web Contents in a Browser

You can preview a file with Web contents in a browser. This can be the IntelliJ IDEA default browser specified in the Web Browsers section of the IDE settings or the one of your choice.

No preliminary steps are required to view HTML code. However, to preview PHP pages in the browser, you need to configure synchronization with a server first.

To preview an opened file in a Web browser, do one of the following:

  • On the main menu, choose View | Open in Browser. The current file opens in the default browser.
  • With the editor tab having the focus, choose View | Preview file in on the main menu or press Alt+F2. Then select the desired browser from the pop-up menu:
    /help/img/idea/2016.3/previewInBrowser1.png
  • Hover your mouse pointer over the code to show the browser icons bar, and click the icon that indicates the desired browser:
    /help/img/idea/2016.3/browserIcons.png

See Also

```

Reference:

Last modified: 21 March 2017