# ブラウザーでの JavaScript の実行

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/ja-jp/help/ruby/llms.txt).

Procedure: RubyMine から JavaScript を使用してファイルを実行する

> **Tip:**
> この方法は、  デフォルトのサーバー構成 がない場合に機能します。 それを確認するには、  `ツール | デプロイ | 構成​`  を選択します。 開く   デプロイ   ダイアログの左側のペインに、デフォルト設定が太字で表示されます。 このステータスを削除するには、構成を選択し、   デフォルトとして使用   ツールバーボタン ![「デフォルトとして使用」ボタン](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.setDefault_dark.svg) をクリックします。

1. エディターで、JavaScript リファレンスを使用して HTML ファイルを開きます。 この HTML ファイルは、必ずしもアプリケーションの開始ページを実装するものである必要はありません。

2. 次のいずれかを実行してください：

* メインメニューから `表示 | ブラウザーで開く` を選択するか、 `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` (Visual Studio), `⌥ F2` (Visual Studio (macOS)), `Alt+F2` (TextMate), `Alt+F2` (NetBeans), `Alt+F2` (Eclipse), `⌥ F2` (Eclipse (macOS)) を押します。 次にリストから目的のブラウザーを選択します。

* コードの上にカーソルを置くと、ブラウザーのアイコンバー ![the RubyMine icon](https://resources.jetbrains.com/help/img/idea/2026.3/product-client.artwork.rubymine.svg) ![Chrome](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.chrome.svg) ![Firefox](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.firefox.svg) ![Safari](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.safari.svg) ![Opera](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.opera.svg) ![Internet Explorer](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.explorer.svg) ![Edge](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.edge.svg) が表示されます。 目的のブラウザーを示すアイコンをクリックします。

## See also

### プロシージャ

[HTML](editing-html-files.html) [デバッグ](debugging-code.html)

### リファレンス

[ウェブブラウザーとプレビュー](settings-tools-web-browsers.html) [デバッグツールウィンドウ](debug-tool-window.html)

