แป้นพิมพ์ลัดสำหรับฟีเจอร์ 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 ให้คลิกไฟล์ (สำหรับ Windows และ Linux) หรือโค้ด (สำหรับ macOS) แล้วไปที่การตั้งค่า > แป้นพิมพ์ลัด
ในรายการแป้นพิมพ์ลัด ให้เลื่อนจนกว่าจะพบแป้นพิมพ์ลัดที่ต้องการเปลี่ยน
เช่น Gemini Code Assist: สร้างโค้ด
คลิกแป้นพิมพ์ลัดที่ต้องการเปลี่ยน (เช่น Gemini Code
Assist: สร้างโค้ด) แล้วคลิก
edit เปลี่ยน
การเชื่อมโยงคีย์
ในกล่องโต้ตอบที่ปรากฏขึ้น ให้ป้อนแป้นพิมพ์ลัดของคุณเอง
กด Enter (สำหรับ Windows และ Linux) หรือ Return (สำหรับ
macOS)
ตอนนี้คุณสามารถใช้แป้นพิมพ์ลัดที่กำหนดใหม่ใน IDE ได้แล้ว
ดูข้อมูลเพิ่มเติมเกี่ยวกับการเปลี่ยนแป้นพิมพ์ลัดใน IDE ได้ที่
การเชื่อมโยงคีย์สำหรับ Visual Studio Code
IntelliJ
ไปที่ settings
การตั้งค่า IDE และโปรเจ็กต์ > การตั้งค่า >
คีย์แมป > ปลั๊กอิน > Gemini Code Assist
คลิกขวาที่แป้นพิมพ์ลัดที่ต้องการเปลี่ยน (เช่น Generate
Code) แล้วเลือกเพิ่มแป้นพิมพ์ลัด
ป้อนแป้นพิมพ์ลัดที่ต้องการ แล้วคลิกตกลง
คลิกขวาที่ทางลัดอีกครั้งแล้วนำทางลัดออก เช่น คลิกขวาที่สร้างโค้ด แล้วเลือกนำ Alt+G ออก (สำหรับ
Windows และ Linux) หรือนำ 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."]]