<html><head><link rel="canonical" href="https://www.jetbrains.com/help/idea/configuring-third-party-tools.html.md/" data-react-helmet="true"/></head><body># External tools

Configure third-party command-line applications as external tools to run them from IntelliJ&nbsp;IDEA.

For example, your workflow may require running a specific script, code generator, analyzer, preprocessor or postprocessor, some database utility, and so on. By configuring it as an external tool, IntelliJ&nbsp;IDEA provides a dedicated action for it, which you can run from the main menu, from certain context menus, assign a shortcut to it, or run it when launching a specific run configuration.

You can use [built-in IDE macros](built-in-macros.html) to pass context-dependent command-line arguments to the tool, such as the current file or your project source path. If necessary, IntelliJ&nbsp;IDEA will print the tool's output to the console.

IntelliJ&nbsp;IDEA supports the following types of external tools:

* Local tools run locally on your computer.

* Remote tools are executed on a remote server over SSH. &gt; **Note:** &gt; You can add and run remote tools only in IntelliJ&nbsp;IDEA Ultimate.

Procedure: Add a local external tool

This example demonstrates how to add [Emacs](https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html)   as an external tool and use it to open and edit files  in your project.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))  to open settings and then select `Tools | External Tools`.

2. Click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) and specify the tool's settings.

![The Create Tool dialog](https://resources.jetbrains.com/help/img/idea/2026.2/settings_tools_external_tools_dialog.png)

For more information, refer to [External tools settings](settings-tools-external-tools.html).

&gt; **Tip:**
&gt; Click ![the Insert Macro icon](https://resources.jetbrains.com/help/img/idea/2026.2/app.general.inlineAdd.svg) to insert a [built-in IDE macro](built-in-macros.html) with the name or path of the current file, path to the project source, and so on. This example uses `$FilePath$` and `$FileDir$`.

3. Click OK to add the tool and then apply the changes.

Procedure: Run the added local external tool

To open the selected file in the newly added Emacs tool, do one of the following:

* In the main menu, go to `Tools | External Tools | Emacs`   .

* Right-click a file in the   Project tool window   and select `External Tools | Emacs`    from the context menu.

* Create a shortcut to run the tool.

Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))  to open settings and then select `Keymap`.  Find the Emacs   action under the External Tools node, and assign a shortcut for it.

When you run the tool, the selected file opens in a separate  window.

![Running External Tool](https://resources.jetbrains.com/help/img/idea/2026.2/ij_run_external_tool.png)

Procedure: Add a remote external tool

This feature is available only in IntelliJ&nbsp;IDEA Ultimate

&gt; **Warning:**
&gt; Make sure the FTP/SFTP/WebDAV Connectivity and HTTP Client plugins are installed and enabled.  Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))  to open settings and then select `Plugins`.

Remote SSH external tools are configured similarly to local external tools, but also define the remote server on which they are executed and require credentials for connecting to it via SSH.

This example demonstrates how to add `date` as a remote SSH external tool that is executed on a remote server over SSH and returns the current date and time on it.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))  to open settings and then select `Tools | Remote SSH External Tools`.

2. Click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) to open the Create Tool dialog.

![The Create Tool dialog](https://resources.jetbrains.com/help/img/idea/2026.2/remote-ssh-external-tools-create-dialog.png)

This dialog provides the same set of settings as when you add a [local external tool](#local-ext-tools), but also allows you to select a remote connection. If you don't specify the connection settings, IntelliJ&nbsp;IDEA will ask you for the host, port, and relevant SSH credentials every time you run the tool on the server. For more information, refer to [Remote external tools settings](settings-tools-remote-ssh-external-tools.html).

&gt; **Tip:**
&gt; You can use [built-in IDE macros](built-in-macros.html) to specify the name of the current file, paths relative to the project root, and other contextual information for the tool.

3. Click OK to add the tool and then apply the changes.

Procedure: Run the added tool on a remote server

This feature is available only in IntelliJ&nbsp;IDEA Ultimate

Do one of the following:

* In the main menu, go to `Tools | Remote Tools` and the name of the added remote external tool.

* Create a shortcut to run the tool.

Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))  to open settings and then select `Keymap`.  Find the action with the name of your configured remote external tool, and assign a shortcut for it.

After you specify the host, port, and credentials, IntelliJ&nbsp;IDEA will connect to the server via SSH and run the `date` command, returning the output to the Run tool window in IntelliJ&nbsp;IDEA.

## Web browsers

You can use a web browser to open any file from your project. By default, it is used to preview the output of an HTML file or run and debug web applications.

Procedure: Open a file in a web browser

To open a file that is intended to be rendered by a web browser (HTML, XML, JSP, and so on), do one of the following:

* Open the file in the editor and press `Alt+F2` (Windows), `⌥ F2` (macOS), `⌥ F2` (IntelliJ IDEA Classic (macOS)), `⌥ F2` (macOS System Shortcuts), `Alt+F2` (XWin), `Alt+F2` (GNOME), `Alt+F2` (KDE), `Alt+F2` (Emacs), `Alt+F2` (Sublime Text), `Alt+F2` (Sublime Text (macOS)), `Alt+F2` (NetBeans), `Alt+F2` (Visual Studio), `⌥ F2` (Visual Studio (macOS)), `Alt+F2` (Eclipse), `⌥ F2` (Eclipse (macOS)).

* Right-click the file in the [Project tool window](project-tool-window.html) and select Open in Browser.

* In the main menu, go to View | Open in Browser.

* Use the browser popup in the top right part of the editor window (appears on hover). Click the browser button to open the web server file URL, or `Shift+Click` (Windows), `Shift+Click` (macOS), `Shift+Click` (IntelliJ IDEA Classic (macOS)), `Shift+Click` (macOS System Shortcuts), `Shift+Click` (XWin), `Shift+Click` (GNOME), `Shift+Click` (KDE), `Shift+Click` (Emacs), `Shift+Click` (Sublime Text), `Shift+Click` (Sublime Text (macOS)), `Shift+Click` (NetBeans), `Shift+Click` (Visual Studio), `Shift+Click` (Visual Studio (macOS)), `Shift+Click` (Eclipse), `Shift+Click` (Eclipse (macOS)) it to open the local file URL.

![The Browser popup in the editor](https://resources.jetbrains.com/help/img/idea/2026.2/editor-browser-popup.png)

The Open in Browser action is not available for other file types. However, you can still execute it using Find Action `Ctrl+Shift+A` (Windows), `⌘ ⇧ A` (macOS), `⌘ ⇧ A` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ P` (macOS System Shortcuts), `Ctrl+Shift+A` (XWin), `Ctrl+Shift+A` (GNOME), `Ctrl+Shift+A` (KDE), `Escape, X` (Emacs), `Ctrl+Shift+P` (Sublime Text), `⌘ ⇧ P` (Sublime Text (macOS)), `Ctrl+I` (NetBeans), `Ctrl+Shift+A` (Visual Studio), `⌘ ⇧ A` (Visual Studio (macOS)), `Ctrl+Shift+A` (Eclipse), `⌘ 3` (Eclipse (macOS)).

Procedure: View and configure the list of browsers

&gt; **Note:**
&gt; By default, IntelliJ&nbsp;IDEA supports some of the most popular browsers, which are configured automatically, if available.

* In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))), select Tools | Web Browsers and Preview.

![The Web Browsers page in Settings](https://resources.jetbrains.com/help/img/idea/2026.2/settings-tools-web-browsers.png)

If a browser was installed using a standard procedure, the alias in the Path field should point to the right location. If it does not, specify the path to the corresponding executable file.

&gt; **Tip:**
&gt; To add a custom browser, click ![the Add button](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.add.svg) and specify the browser name, family, and location of the executable file or macOS application.

Procedure: Use custom profile and settings

You can configure custom profiles for Firefox and Chrome family browsers.

1. In the Settings dialog (`Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS))), select Tools | Web Browsers and Preview.

2. Select the browser in the list and click ![the Edit button](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.edit.svg).

* For Firefox, specify the path to the `profiles.ini` file and choose the profile to use. For more information, refer to [Firefox browser profile](http://support.mozilla.com/en-US/kb/Profiles).

* For Chrome, select Use custom user data directory and specify the location of the [user data directory](https://chromium.googlesource.com/chromium/src/+/master/docs/user_data_dir.md). You can also specify additional command-line options to use when running Chrome from IntelliJ&nbsp;IDEA. For more information, open `chrome://flags` in the Chrome address bar.

## See also

### Related

[External tools settings](settings-tools-external-tools.html) [Remote external tools settings](settings-tools-remote-ssh-external-tools.html) [Web Browsers and Preview](settings-tools-web-browsers.html) [Built-in IDE macros](built-in-macros.html)

</body></html>