Thiết lập tính năng Gemini Code Assist cho cá nhân
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu này mô tả cách thiết lập Gemini Code Assist dành cho cá nhân trong VS Code hoặc IntelliJ. Người dùng các IDE khác được JetBrains hỗ trợ nên làm theo hướng dẫn của IntelliJ khi thiết lập Gemini Code Assist. Bạn thực hiện các bước sau trong IDE:
Cài đặt tiện ích Gemini Code Assist.
Đăng nhập bằng Tài khoản Google của bạn.
Đọc Thông báo về quyền riêng tư của Gemini.
Cài đặt tiện ích Gemini Code Assist
Để cài đặt tiện ích Gemini Code Assist trong IDE, hãy làm theo các bước sau:
VS Code
Để mở chế độ xem Tiện ích trong VS Code, hãy nhấp vào Tiện ích hoặc nhấn Ctrl/Cmd+Shift+X.
Tìm kiếm Gemini Code Assist
Nhấp vào Install (Cài đặt).
Nếu được nhắc, hãy khởi động lại VS Code.
Sau khi cài đặt thành công, Gemini Code Assist sẽ xuất hiện trong thanh hoạt động và sẵn sàng sử dụng. Bạn có thể định cấu hình thêm chế độ cài đặt Gemini Code Assist bằng cách chỉ định các lựa chọn ưu tiên của mình bằng thanh tác vụ ứng dụng cấp cao nhất: chuyển đến Code (Mã) > Settings (Cài đặt) > Settings (Cài đặt) > Extensions (Tiện ích) rồi tìm Gemini Code Assist.
IntelliJ
Nhấp vào settingsIDE và Cài đặt dự án > Trình bổ trợ.
Trong thẻ Marketplace (Trang web thương mại), hãy tìm Gemini Code Assist.
Nhấp vào Cài đặt để cài đặt trình bổ trợ.
Khi quá trình cài đặt hoàn tất, hãy nhấp vào Restart IDE (Khởi động lại IDE).
Khi IDE khởi động lại, Gemini Code Assist sẽ xuất hiện trong thanh hoạt động.
Giờ đây, bạn đã sẵn sàng đăng nhập vào Tài khoản Google và chấp nhận Thông báo về quyền riêng tư của Gemini trong IDE.
Đăng nhập vào Tài khoản Google
Trong phần này, bạn sẽ đăng nhập vào Tài khoản Google của mình bằng cách làm theo các bước sau:
VS Code
Nếu bạn muốn làm theo hướng dẫn Lập trình bằng Gemini Code Assist ngay trong IDE, hãy nhấp vào Chạy VS Code rồi làm theo các bước trong hướng dẫn để đăng nhập vào Tài khoản Google của bạn.
Trong thanh hoạt động, hãy nhấp vào sparkGemini Code Assist.
Trong cửa sổ Gemini Code Assist: Chat (Gemini Code Assist: Trò chuyện), hãy nhấp vào Đăng nhập vào Google.
Khi được nhắc cho phép Gemini Code Assist mở trang web bên ngoài, hãy nhấp vào Open (Mở).
Làm theo lời nhắc để đăng nhập vào Tài khoản Google của bạn.
Khi được hỏi liệu bạn có tải Gemini Code Assist xuống từ Google hay không, hãy nhấp vào Đăng nhập.
Bạn hiện đã kết nối với Tài khoản Google của mình.
Gemini Code Assist đã sẵn sàng để bạn sử dụng.
IntelliJ
Để đăng nhập vào Tài khoản Google, hãy làm theo các bước sau:
Trong thanh hoạt động, hãy nhấp vào sparkGemini Code Assist.
Nhấp vào Đăng nhập vào Google.
Trên trang mở ra trong trình duyệt web, hãy chọn Tài khoản Google của bạn.
Trên màn hình yêu cầu bạn đảm bảo rằng bạn đã tải ứng dụng này xuống từ Google, hãy nhấp vào Đăng nhập.
Gemini Code Assist hiện được phép truy cập vào tài khoản của bạn.
Giờ đây, khi đã đăng nhập vào Tài khoản Google, bạn có thể đọc và đóng Thông báo về quyền riêng tư của Gemini trong IDE.
Xem thông báo về quyền riêng tư của Gemini Code Assist dành cho cá nhân
Sau khi cài đặt Gemini Code Assist và đăng nhập thành công vào Gemini Code Assist dành cho cá nhân (phiên bản miễn phí của Gemini Code Assist), bạn sẽ thấy một thông báo về quyền riêng tư xuất hiện trong bảng trò chuyện của tiện ích Gemini Code Assist. Bạn nên đọc thông báo về quyền riêng tư để hiểu cách Google xử lý dữ liệu của bạn trong VS Code hoặc IntelliJ.
Nếu đang sử dụng Gemini Code Assist dành cho cá nhân, bạn có thể xem hoặc cập nhật chế độ cài đặt quyền riêng tư bất cứ lúc nào.
Bạn có thể tìm thấy thông báo về quyền riêng tư và các chế độ cài đặt của Gemini Code Assist dành cho cá nhân theo hai cách:
VS Code
Trong ngăn trò chuyện của Gemini Code Assist, hãy nhấp vào biểu tượng more_horizTuỳ chọn khác rồi chọn Chế độ cài đặt quyền riêng tư.
Trong IDE, hãy chuyển đến settingsSettings (Cài đặt) > Extensions (Tiện ích) > Gemini Code Assist (Gemini Code Assist).
Trong phần Dữ liệu đo từ xa của Gemini Code Assist, bạn có thể chọn gửi hoặc không gửi số liệu thống kê về việc sử dụng (chẳng hạn như báo cáo sự cố) cho Google. Số liệu thống kê về mức sử dụng phải tuân thủ Chính sách quyền riêng tư của Google.
Bạn cũng sẽ thấy đường liên kết đến Thông báo về quyền riêng tư của Gemini Code Assist dành cho cá nhân và chế độ cài đặt quyền riêng tư. Đường liên kết này sẽ mở ra một trang nơi bạn có thể chọn không cho phép Google sử dụng dữ liệu của bạn để phát triển và cải thiện các mô hình học máy của Google. Các chế độ cài đặt quyền riêng tư này được lưu trữ ở cấp IDE.
IntelliJ
Trong phần lề của IDE, hãy nhấp vào spark Gemini Code Assist, rồi chọn Chế độ cài đặt quyền riêng tư.
Chuyển đến phần settingsCài đặt > Cài đặt > Gemini.
Trong phần Số liệu thống kê về việc sử dụng mã của Gemini, bạn có thể chọn gửi hoặc không gửi số liệu thống kê về việc sử dụng (chẳng hạn như báo cáo sự cố) cho Google.
Số liệu thống kê về việc sử dụng phải tuân theo Chính sách quyền riêng tư của Google.
Bạn cũng sẽ thấy đường liên kết đến Thông báo về quyền riêng tư của Gemini Code Assist dành cho cá nhân và chế độ cài đặt quyền riêng tư. Đường liên kết này sẽ mở ra một trang nơi bạn có thể chọn không cho phép Google sử dụng dữ liệu của bạn để phát triển và cải thiện các mô hình học máy của Google. Các chế độ cài đặt quyền riêng tư này được lưu trữ ở cấp IDE.
[null,null,["Cập nhật lần gần đây nhất: 2025-09-05 UTC."],[[["\u003cp\u003eNew Gemini Code Assist customers without prior subscriptions receive credits for up to 50 free licenses in their first month.\u003c/p\u003e\n"],["\u003cp\u003eGemini Code Assist Enterprise is available for a promotional price of $19 per month per user with a 12-month commitment until March 31, 2025.\u003c/p\u003e\n"],["\u003cp\u003eSetting up Gemini Code Assist in VS Code or IntelliJ involves installing the extension, signing in with a Google Account, and reading the Gemini Privacy Notice.\u003c/p\u003e\n"],["\u003cp\u003eTo install the extension, users need to search for "Gemini Code Assist" in the Extensions or Marketplace section of their IDE and then restart their IDE after installation.\u003c/p\u003e\n"],["\u003cp\u003eSigning into a Google Account to use Gemini Code Assist can be done by clicking "Login to Google" or "Log in to Google" within the Gemini Code Assist chat window in the IDE.\u003c/p\u003e\n"]]],[],null,["| **Note:** If you're at a business or would like more team-level benefits, consider [Gemini Code Assist Standard or Enterprise](/gemini-code-assist/docs/set-up-gemini-standard-enterprise).\n\nThis document describes how to set up Gemini Code Assist for\nindividuals in VS Code or IntelliJ. Users of\n[other supported JetBrains IDEs](/gemini-code-assist/docs/supported-languages#supported_ides)\nshould follow the IntelliJ instructions when setting up\nGemini Code Assist. You perform the following steps in your IDE:\n\n- Install the Gemini Code Assist extension.\n- Sign in with your Google Account.\n- Read the Gemini Privacy Notice.\n\nInstall the Gemini Code Assist extension\n\nTo install the Gemini Code Assist extension in your IDE, follow\nthese steps: \n\nVS Code\n\n1. To open the **Extensions** view in VS Code, click\n\n **Extensions** or press `Ctrl`/`Cmd`+`Shift`+`X`.\n\n2. Search for `Gemini Code Assist`.\n\n3. Click **Install**.\n\n4. If prompted, restart VS Code.\n\n After the extension has successfully installed,\n Gemini Code Assist appears in the activity bar and is\n ready for use. You can further configure your\n Gemini Code Assist installation by specifying your\n preferences using the top-level application taskbar: navigate to\n **Code** \\\u003e **Settings** \\\u003e **Settings**\n \\\u003e **Extensions** and search for `Gemini Code Assist`.\n\nIntelliJ\n\n1. Click settings **IDE\n and Project Settings** \\\u003e **Plugins**.\n2. In the **Marketplace** tab, search for `Gemini Code Assist`.\n3. Click **Install** to install the plugin.\n4. When the installation is finished, click **Restart IDE**.\n5. When the IDE restarts, Gemini Code Assist appears in your\n activity bar.\n\nNow you're ready to sign in to your Google Account and accept the\nGemini Privacy Notice in your IDE.\n\nSign in to Google Account\n\nIn this section, you sign in to your Google Account by following these steps: \n\nVS Code\n\nIf you prefer to follow the **Code with\nGemini Code Assist**\nwalkthrough directly in your IDE, click **Launch VS Code** and follow the\nsteps in the walkthrough to sign in to your Google Account.\n\n[Launch VS Code](vscode://googlecloudtools.cloudcode/cloudcode.openWalkthrough?id=duet-ai)\n\nOtherwise, follow these steps:\n\n1. Launch your IDE.\n\n2. In the activity bar, click\n spark**Gemini Code\n Assist**.\n\n3. In the **Gemini Code Assist: Chat** window, click **Login to Google**.\n\n4. When prompted to allow Gemini Code Assist to open the\n external website, click **Open**.\n\n5. Follow the prompts to sign in to your Google Account.\n\n6. When asked if you downloaded Gemini Code Assist from\n Google, click **Sign In**.\n\n | **Note:** If your sign-in attempts keep timing out, see the **Sign-in attempts keep timing out** issue in [Known issues](/gemini-code-assist/docs/write-code-gemini#known_issues) for more information on troubleshooting.\n\n You're now connected to your Google Account.\n\n Gemini Code Assist is ready to use.\n\nIntelliJ\n\nTo sign in to your Google Account, follow these steps:\n\n1. In the activity bar, click\n spark **Gemini Code\n Assist**.\n\n2. Click **Log in to Google**.\n\n3. On the page that opens in the web browser, select your Google Account.\n\n4. On the screen that asks you to make sure that you downloaded this app\n from Google, click **Sign in**.\n\n Gemini Code Assist is now authorized to access your\n account.\n\nNow that you're signed in to your Google Account, you can read and dismiss the\nGemini Privacy Notice in your IDE.\n\nReview the Gemini Code Assist for individuals privacy notice\n\nAfter you've installed Gemini Code Assist and successfully signed\ninto Gemini Code Assist for individuals, the free version of\nGemini Code Assist, you'll see a privacy notice appear in the\nchat panel in the Gemini Code Assist extension. We encourage you\nto [read the privacy notice](/gemini-code-assist/resources/privacy-notice-gemini-code-assist-individuals) to understand how Google handles\nyour data in VS Code or IntelliJ.\n\nIf you're using Gemini Code Assist for individuals, you can view\nor update your privacy settings at any time.\n\nYou can find the Gemini Code Assist for individuals privacy\nnotice and settings in two ways: \n\nVS Code\n\n- In the Gemini Code Assist chat pane, click\n more_horiz **More** and then select\n **Privacy settings**.\n\n- In your IDE, navigate to\n settings **Settings**\n \\\u003e **Extensions** \\\u003e **Gemini Code Assist**.\n\n In the **Gemini Code Assist telemetry** section, you can select whether or\n not to send usage statistics, such as crash reports, to Google. Usage\n statistics are subject to the\n [Google privacy policy](https://policies.google.com/privacy).\n\n You'll also see a link to the [Gemini Code Assist for\n individuals privacy notice](/gemini-code-assist/resources/privacy-notice-gemini-code-assist-individuals)\n and privacy settings. This link opens a page where you can choose to opt\n out of allowing Google to use your data to develop and improve Google's\n machine learning models. These privacy settings are stored at the IDE\n level.\n | **Note:** If you're using Gemini Code Assist Standard and Enterprise editions, the Gemini Code Assist for individuals privacy notice doesn't apply to you, since with these editions you're always opted out of sharing your data to develop and improve Google's machine learning models.\n\nIntelliJ\n\n- In the gutter of your IDE, click\n spark\n Gemini Code Assist, and then select **Privacy settings**.\n\n- Navigate to settings\n **Settings** \\\u003e **Settings** \\\u003e **Gemini**.\n\n In the section about **Gemini Code Usage Statistics** , you can select\n whether or not to send usage statistics, such as crash reports, to Google.\n Usage statistics are subject to the\n [Google privacy policy](https://policies.google.com/privacy).\n\n You'll also see a link to the [Gemini Code Assist for\n individuals privacy notice](/gemini-code-assist/resources/privacy-notice-gemini-code-assist-individuals)\n and privacy settings. This link opens a page where you can choose to opt\n out of allowing Google to use your data to develop and improve Google's\n machine learning models. These privacy settings are stored at the IDE\n level.\n | **Note:** If you're using Gemini Code Assist Standard and Enterprise editions, the Gemini Code Assist for individuals privacy notice doesn't apply to you, since with these editions you're always opted out of sharing your data to develop and improve Google's machine learning models.\n\nNow you're ready to use Gemini Code Assist in your IDE. To get\nstarted, see\n[Code with Gemini Code Assist](/gemini-code-assist/docs/write-code-gemini)\nand [Chat with Gemini Code Assist](/gemini-code-assist/docs/chat-gemini)."]]