מקשי קיצור לתכונות של Gemini Code Assist
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
Gemini Code Assist מספק עזרה מבוססת-AI כדי לעזור לצוות הפיתוח שלכם לבנות, לפרוס ולהפעיל אפליקציות לאורך מחזור החיים של פיתוח התוכנה, באמצעות מודל Gemini 2.5.
בדף הזה מופיע סקירה כללית של מקשי הקיצור שאפשר להשתמש בהם ב-VS Code, ב-IntelliJ ובסביבות פיתוח משולבות (IDE) אחרות של JetBrains שנתמכות, למשתמשי Windows, Linux ו-macOS.
קיצורי דרך ליצירת קוד
IntelliJ
פעולה |
מקש קיצור (Windows/Linux) |
מקש קיצור (macOS) |
יצירת קוד בתוך קובץ קוד |
Control+G |
Option+G |
פתיחת ההנחיה בעורך |
Control+\ |
Command+\ |
מקשי קיצור בטרמינל
IntelliJ
בשלב הזה אין קיצורי דרך לטרמינל שמוגדרים כברירת מחדל ב-Gemini Code Assist ל-IntelliJ ולסביבות פיתוח משולבות (IDE) אחרות של JetBrains שנתמכות.
מקשי קיצור ב-Chat
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
Keybinding.
בתיבת הדו-שיח שמופיעה, מזינים את מקש הקיצור הרצוי.
מקישים על Enter (ב-Windows וב-Linux) או על Return (ב-macOS).
עכשיו אפשר להשתמש במקש הקיצור החדש שהוקצה לכם בסביבת הפיתוח המשולבת.
מידע נוסף על שינוי מקשי קיצור בסביבת הפיתוח המשולבת זמין במאמר בנושא קישורי מקשים ב-Visual Studio Code.
IntelliJ
עוברים אל settings
IDE and Project Settings (הגדרות IDE והפרויקט) > Settings (הגדרות) > Keymap (מיפוי מקלדת) > Plugins (תוספים) > Gemini Code Assist (עזרה בכתיבת קוד מ-Gemini).
לוחצים לחיצה ימנית על קיצור הדרך שרוצים לשנות (לדוגמה, Generate
Code) ובוחרים באפשרות Add Keyboard Shortcut (הוספת מקש קיצור).
מזינים את מקש הקיצור המועדף ולוחצים על אישור.
לוחצים לחיצה ימנית על קיצור הדרך שוב ומסירים אותו. לדוגמה, לוחצים לחיצה ימנית על יצירת קוד ובוחרים באפשרות הסרה Alt+G (ב-Windows וב-Linux) או באפשרות הסרה Option+G (ב-macOS).
עכשיו אפשר להשתמש במקש הקיצור החדש בסביבת הפיתוח המשולבת.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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."]]