میانبرهای صفحه کلید برای ویژگیهای Gemini Code Assist
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
Gemini Code Assist با استفاده از مدل Gemini 2.5 کمکهای مبتنی بر هوش مصنوعی را برای کمک به تیم توسعهدهنده شما در ساخت، استقرار و اجرای برنامهها در طول چرخه عمر توسعه نرمافزار ارائه میکند.
این صفحه یک نمای کلی از میانبرهای صفحه کلیدی را ارائه می دهد که می توانید در VS Code، IntelliJ و سایر IDE های JetBrains پشتیبانی شده ، برای کاربران Windows، Linux و macOS استفاده کنید.
میانبرهای تولید کد
IntelliJ
اقدام | میانبر صفحه کلید (ویندوز/لینوکس) | میانبر صفحه کلید (macOS) |
---|
کد درون خطی یک فایل کد تولید کنید | کنترل + G | Option+G |
اعلان In-Editor را باز کنید | کنترل +\ | Command+\ |
میانبرهای ترمینال
IntelliJ
در حال حاضر هیچ میانبر پایانه پیش فرضی برای Gemini Code Assist برای IntelliJ و سایر IDE های JetBrains پشتیبانی شده وجود ندارد.
میانبرهای چت
کد VS
اقدام | میانبر صفحه کلید (ویندوز/لینوکس) | میانبر صفحه کلید (macOS) |
---|
از دستورات چت قبلی استفاده کنید | فلش های بالا/پایین | فلش های بالا/پایین |
IntelliJ
اقدام | میانبر صفحه کلید (ویندوز/لینوکس) | میانبر صفحه کلید (macOS) |
---|
از دستورات چت قبلی استفاده کنید | فلش های بالا/پایین | فلش های بالا/پایین |
ویرایش میانبرهای صفحه کلید
اگر ترجیح میدهید یکی از میانبرهای پیشفرض Gemini Code Assist را تغییر دهید، میتوانید با دنبال کردن این مراحل این کار را انجام دهید:
کد VS
در IDE خود، روی File (برای Windows و Linux) یا Code (برای macOS) کلیک کنید و سپس به تنظیمات > میانبرهای صفحه کلید بروید.
در لیست میانبرهای صفحه کلید، پیمایش کنید تا میانبری را که می خواهید تغییر دهید پیدا کنید. به عنوان مثال: Gemini Code Assist: ایجاد کد .
روی میانبری که میخواهید تغییر دهید (مثلاً Gemini Code Assist: Generate Code ) کلیک کنید و سپس روی edit Change Keybinding کلیک کنید.
در گفتگوی ظاهر شده، میانبر خود را وارد کنید.
Enter (برای ویندوز و لینوکس) یا Return (برای macOS) را فشار دهید.
اکنون می توانید از میانبر صفحه کلیدی که به تازگی اختصاص داده اید در IDE خود استفاده کنید.
برای کسب اطلاعات بیشتر در مورد تغییر میانبرها در IDE خود، به Keybindings for Visual Studio Code مراجعه کنید.
IntelliJ
به settings IDE و Project Settings > Settings > Keymap > Plugins > Gemini Code Assist بروید.
روی میانبری که میخواهید تغییر دهید کلیک راست کنید (مثلاً Generate Code ) و Add Keyboard Shortcut را انتخاب کنید.
میانبر صفحه کلید دلخواه خود را وارد کنید و سپس روی OK کلیک کنید.
دوباره روی میانبر کلیک راست کرده و میانبر را حذف کنید. برای مثال، روی Generate code کلیک راست کرده و Remove Alt+G (برای ویندوز و لینوکس) یا Remove Option+G (برای macOS) را انتخاب کنید.
اکنون می توانید از میانبر صفحه کلید جدید خود در IDE خود استفاده کنید.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-08-30 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-08-30 بهوقت ساعت هماهنگ جهانی."],[],[],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."]]