קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אתם יכולים לצרף את קובצי הפרויקט כהקשר לאינטראקציות בשיחה עם Gemini ב-Android Studio. כך תוכלו להפנות במהירות לקבצים בהנחיות ל-Gemini, כדי לעזור ל-Gemini לזהות את הקבצים שהשאילתה מתייחסת אליהם.
כדי לצרף קובץ לשאילתה, מקלידים @ בשדה הקלט של הצ'אט עם Gemini כדי להציג תפריט של השלמת קבצים. מחפשים את שם הקובץ הרצוי ובוחרים את הקובץ כדי לצרף אותו. אפשר לצרף כמה קבצים לשאילתה אחת.
כדי לבטל את הצירוף של קובץ, לוחצים על התפריט הנפתח הקשר ולוחצים על סמל ה-X שמופיע כשמעבירים את העכבר מעל קובץ. כדי לבטל את הצירוף של כל הקבצים בבת אחת, לוחצים על ניקוי.
Gemini גם מציע באופן אוטומטי קבצים לצירוף כהקשר. כדי לראות אילו קבצים הוצעו על ידי Gemini, לוחצים על התפריט הנפתח הקשר ומחפשים את הקטע הצעות של Gemini. כדי לבטל את הבחירה בקובץ מוצע או לבחור אותו, משתמשים בתיבת הסימון שליד הקובץ.
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-09-02 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-09-02 (שעון UTC)."],[],[],null,["# Attach a file to your query\n\n| **Preview:** The file attachment feature is in active development and available to try out through [Studio Labs](/studio/gemini/labs).\n\nYou can attach your project files as context in chat interactions with Gemini in\nAndroid Studio. This lets you quickly reference files in your prompts for\nGemini, which helps Gemini identify the files that your query is about.\n\nTo attach a file to your query, in the Gemini chat input, type `@` to bring up a\nfile completion menu. Search for the filename you want and select the file to\nattach it. You can attach multiple files in a single query.\n\nTo un-attach a file, click the **Context** drop-down and press the \"x\" that\nappears when you hover over a file. To un-attach all files at once, click\n**Clear**.\n\nGemini also automatically suggests files to attach as context. To see which\nfiles were suggested by Gemini, click the **Context** drop-down and look under\n**Gemini suggestions**. To de-select or select a suggested file, use the\ncheckbox next to the file."]]