Gemini Code Assist provides AI-powered assistance to help your development team build, deploy, and operate applications throughout the software development lifecycle, using the Gemini 2.5 model.
This page provides an overview of the keyboard shortcuts you can use in VS Code, IntelliJ, and other supported JetBrains IDEs, for Windows, Linux, and macOS users.
Code generation shortcuts
VS Code
Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |
---|---|---|
Prompt Gemini Code Assist to explain selected code in a code file | Control+Alt+X | Command+Alt+X |
Navigate to chat interface | Alt+G | Option+G |
IntelliJ
Action | Keyboard shortcut (Windows/Linux) | Keyboard shortcut (macOS) |
---|---|---|
Generate code inline of a code file | Control+G | Option+G |
Open In-Editor prompt | Control+\\ | Command+\\ |
Edit keyboard shortcuts
If you prefer to change any of the default Gemini Code Assist shortcuts, you can do so by following these steps:
VS Code
In your IDE, click File (for Windows and Linux) or Code (for macOS), and then navigate to Settings > Keyboard Shortcuts.
In the list of keyboard shortcuts, scroll until you find the shortcut that you want to change. For example: Gemini Code Assist: Generate code.
Click the shortcut that you want to change (for example, Gemini Code Assist: Generate Code), and then click edit Change Keybinding.
In the dialog that appears, enter your own shortcut.
Press Enter (for Windows and Linux) or Return (for macOS).
You can now use your newly assigned keyboard shortcut in your IDE.
To learn more about changing shortcuts in your IDE, see Keybindings for Visual Studio Code.
IntelliJ
Navigate to settings IDE and Project Settings > Settings > Keymap > Plugins > Gemini Code Assist.
Right-click the shortcut you want to change (for example, Generate Code) and select Add Keyboard Shortcut.
Enter your preferred keyboard shortcut and then click OK.
Right-click the shortcut again and remove the shortcut. For example, right-click Generate code and select Remove Alt+G (for Windows and Linux), or Remove Option+G (for macOS).
You can now use your new keyboard shortcut in your IDE.