Gemini Code Assist 機能のキーボード ショートカット
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Gemini Code Assist は、Gemini 2.5 モデルを使用して、ソフトウェア開発ライフサイクル全体を通して開発チームがアプリケーションを構築、デプロイ、運用できるように AI を活用したアシスタンスを提供します。
このページでは、Windows、Linux、macOS のユーザーが、VS Code、IntelliJ、その他のサポートされている JetBrains IDE で使用できるキーボード ショートカットの概要について説明します。
コード生成のショートカット
IntelliJ
アクション |
キーボード ショートカット(Windows / Linux) |
キーボード ショートカット(macOS) |
コードファイルのインラインでコードを生成する |
Ctrl+G |
option+G |
エディタ内プロンプトを開く |
Ctrl+\ |
command+\ |
ターミナルのショートカット
IntelliJ
現時点では、IntelliJ などのサポートされている JetBrains IDE の Gemini Code Assist にデフォルトのターミナル ショートカットはありません。
チャットのショートカット
VS Code
アクション |
キーボード ショートカット(Windows / Linux) |
キーボード ショートカット(macOS) |
以前のチャット プロンプトを切り替える |
上下矢印 |
上下矢印 |
IntelliJ
アクション |
キーボード ショートカット(Windows / Linux) |
キーボード ショートカット(macOS) |
以前のチャット プロンプトを切り替える |
上下矢印 |
上下矢印 |
キーボード ショートカットを編集する
Gemini Code Assist のデフォルトのショートカットを変更する場合は、次の手順で操作します。
VS Code
IDE で、[File](Windows および Linux の場合)または [Code](macOS の場合)をクリックして、[Settings] > [Keyboard Shortcuts] に移動します。
キーボード ショートカットのリストで、変更するショートカットが見つかるまでスクロールします。例: Gemini Code Assist: Generate code。
変更するショートカット([Gemini Code Assist: Generate Code] など)をクリックし、[edit Change Keybindin] をクリックします。
表示されたダイアログで、独自のショートカットを入力します。
Enter(Windows および Linux の場合)または return(macOS の場合)を押します。
これで、新しく割り当てたキーボード ショートカットを IDE で使用できるようになりました。
IDE におけるショートカット変更の詳細については、Visual Studio Code のキーバインドをご覧ください。
IntelliJ
[settings
IDE and Project Settings] > [Settings] >
[Keymap] > [Plugins] > [Gemini Code Assist] に移動します。
変更するショートカット([Generate Code] など)を右クリックし、[Add Keyboard Shortcut] を選択します。
任意のキーボード ショートカットを入力して、[OK] をクリックします。
ショートカットをもう一度右クリックして、ショートカットを削除します。たとえば、[Generate code] を右クリックし、[Remove Alt+G](Windows および Linux の場合)または [Remove option+G](macOS の場合)を選択します。
これで、IDE で新しいキーボード ショートカットを使用できるようになりました。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-31 UTC。
[null,null,["最終更新日 2025-08-31 UTC。"],[],[],null,["Gemini Code Assist provides AI-powered assistance to help your\ndevelopment team build, deploy, and operate applications throughout the software\ndevelopment lifecycle, using the Gemini 2.5 model.\n\nThis page provides an overview of the keyboard shortcuts you can use in VS Code,\nIntelliJ, and\n\n[other supported JetBrains IDEs](/gemini-code-assist/docs/supported-languages#supported_ides),\nfor Windows, Linux, and macOS users.\n\nCode generation shortcuts \n\nVS Code\n\n| Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |\n|-------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|---------------------------|\n| Navigate to chat interface | \u003ckbd\u003eAlt+G\u003c/kbd\u003e | \u003ckbd\u003eOption+G\u003c/kbd\u003e |\n| [Add the current highlighted code to the Gemini Chat context](/gemini-code-assist/docs/chat-gemini#add_selected_code_snippets_to_context) | \u003ckbd\u003eControl+Alt+X\u003c/kbd\u003e | \u003ckbd\u003eCommand+Alt+X\u003c/kbd\u003e |\n\nIntelliJ\n\n| Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |\n|-------------------------------------|-----------------------------------|---------------------------|\n| Generate code inline of a code file | \u003ckbd\u003eControl+G\u003c/kbd\u003e | Option+G |\n| Open In-Editor prompt | \u003ckbd\u003eControl+\\\u003c/kbd\u003e | \u003ckbd\u003eCommand+\\\u003c/kbd\u003e |\n\nTerminal shortcuts \n\nVS Code\n\n| Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|---------------------------|\n| [Add the current highlighted terminal content to the Gemini Chat context](/gemini-code-assist/docs/chat-gemini#prompt_with_selected_terminal_output_using_chat) | \u003ckbd\u003eControl+Alt+X\u003c/kbd\u003e | \u003ckbd\u003eCommand+Alt+X\u003c/kbd\u003e |\n\nIntelliJ\n\nThere aren't any default terminal shortcuts for\nGemini Code Assist for IntelliJ and other supported JetBrains\nIDEs at this time.\n\nChat shortcuts \n\nVS Code\n\n| Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |\n|----------------------------------|-----------------------------------|---------------------------|\n| Cycle through prior chat prompts | \u003ckbd\u003eUp/down arrows\u003c/kbd\u003e | \u003ckbd\u003eUp/down arrows\u003c/kbd\u003e |\n\nIntelliJ\n\n| Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |\n|----------------------------------|-----------------------------------|-----------------------------------|\n| Cycle through prior chat prompts | \u003ckbd\u003eUp/down arrows\u003c/kbd\u003e | \u003ckbd\u003eUp/down arrows\u003c/kbd\u003e |\n| New chat | \u003ckbd\u003eControl+Alt+Windows+Up\u003c/kbd\u003e | \u003ckbd\u003eControl+Alt+Command+Up\u003c/kbd\u003e |\n\nEdit keyboard shortcuts\n\nIf you prefer to change any of the default Gemini Code Assist\nshortcuts, you can do so by following these steps: \n\nVS Code\n\n1. In your IDE, click **File** (for Windows and Linux) or **Code** (for\n macOS), and then navigate to **Settings** \\\u003e **Keyboard\n Shortcuts**.\n\n2. In the list of keyboard shortcuts, scroll until you find the shortcut that\n you want to change. For example: **Gemini Code Assist: Generate code**.\n\n3. Click the shortcut that you want to change (for example, **Gemini Code\n Assist: Generate Code** ), and then click\n edit **Change\n Keybinding**.\n\n4. In the dialog that appears, enter your own shortcut.\n\n5. Press \u003ckbd\u003eEnter\u003c/kbd\u003e (for Windows and Linux) or \u003ckbd\u003eReturn\u003c/kbd\u003e (for\n macOS).\n\n You can now use your newly assigned keyboard shortcut in your IDE.\n\nTo learn more about changing shortcuts in your IDE, see\n[Keybindings for Visual Studio Code](https://code.visualstudio.com/docs/getstarted/keybindings).\n\nIntelliJ\n\n1. Navigate to settings\n **IDE and Project Settings** \\\u003e **Settings** \\\u003e\n **Keymap** \\\u003e **Plugins** \\\u003e **Gemini Code Assist**.\n\n2. Right-click the shortcut you want to change (for example, **Generate\n Code** ) and select **Add Keyboard Shortcut**.\n\n3. Enter your preferred keyboard shortcut and then click **OK**.\n\n4. Right-click the shortcut again and remove the shortcut. For example,\n right-click **Generate code** and select **Remove \u003ckbd\u003eAlt+G\u003c/kbd\u003e** (for\n Windows and Linux), or **Remove \u003ckbd\u003eOption+G\u003c/kbd\u003e** (for macOS).\n\nYou can now use your new keyboard shortcut in your IDE."]]