You can view the GitHub copy of a file right from the IDE. IntelliJ IDEA detects which branch is currently active and opens the GitHub copy of the file in the corresponding branch.
- Open the file in the editor or select it in the Project tool window.
- On the context menu, choose Open in Browser. The GitHub copy of the file in the remote version fo the current branch opens.
If the command is invoked on a folder, the page with the information on the corresponding remote folder is displayed.