Cloud Code 是一个扩展程序,可将许多 Google Cloud服务(例如 Google Kubernetes Engine 和 Cloud Run)直接整合到 IDE 中,因此您无需上下文切换即可开发应用。您还可以借助 Gemini(AI 赋能的协作工具)进行编码,它可以帮助您解决代码问题、为项目生成代码,以及在您编码时获取行内建议。
您可以获得对 GKE 和 Cloud Run 应用的整个开发周期的支持,从使用现有模板创建应用到监控已部署应用的资源。Cloud Code 还随附了可直接运行的示例和开箱即用的配置代码段,可帮助您快速上手。
Cloud Code 可与 Google 的命令行容器工具(如 Skaffold、minikube 和 kubectl)搭配使用,在您本地或在云端构建、修改、运行和部署应用时,提供有关项目的本地持续反馈。Cloud Code 还与 Google Cloud SDK 集成,以便在您使用 Google Cloud 服务进行开发时提供统一的身份验证体验。
虽然 Cloud Code 可与任何云平台搭配使用,但它可提供简便高效的 Google Cloud 体验。例如,您可以创建托管在 Google Cloud上的集群,并更好地与 Cloud Source Repositories、Cloud Build 和 Cloud 客户端库等工具集成。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-04。"],[[["\u003cp\u003eCloud Code is an IDE extension that integrates Google Cloud services like Google Kubernetes Engine and Cloud Run directly into your development environment, reducing context switching.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code offers full development cycle support for GKE and Cloud Run applications, from creation using templates to monitoring deployed resources, as well as AI assistance with Gemini.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code supports various languages (Go, Java, Node.js, Python, .NET Core) and integrates with tools like Skaffold, minikube, kubectl, and Google Cloud SDK for streamlined development.\u003c/p\u003e\n"],["\u003cp\u003eIt also includes built-in support for creating container images, managing secrets, browsing Cloud APIs, managing virtual machine instances, and connecting to Cloud SQL databases, all from within your IDE.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code is available in VS Code, IntelliJ, other JetBrains IDEs, and the Cloud Shell Editor, and it offers Gemini Code Assist, which can be enabled to help streamline the development workflow.\u003c/p\u003e\n"]]],[],null,["# Cloud Code overview\n\nCloud Code is an extension that brings many Google Cloud\nservices, like Google Kubernetes Engine and Cloud Run, directly into your IDE,\nso you can develop your applications without having to context switch. You can\nalso code with assistance from [Gemini](/gemini/docs/overview), an\nAI-powered collaborator, to help you solve problems with your code, generate\ncode for your project, and receive inline suggestions while you code.\n\nYou have support for the full development cycle of\nGKE and Cloud Run applications,\nfrom creating an app using an existing template to monitoring your\ndeployed app's resources. Cloud Code also comes with run-ready\nsamples and out-of-the-box configuration snippets to get you started quickly.\n\nCloud Code works with Google's command-line container tools like\n[Skaffold](/skaffold),\n[minikube](https://minikube.sigs.k8s.io/docs/), and\n[kubectl](https://kubernetes.io/docs/tasks/tools/), providing\nlocal, continuous feedback on your project as you build, edit, run, and deploy\nyour applications locally or in the cloud. Cloud Code also\nintegrates with [Google Cloud SDK](/sdk) to provide a unified authentication\nexperience when you develop with Google Cloud services.\n\nWhile Cloud Code works with any cloud platform, it provides a\nstreamlined Google Cloud experience. For example, you can create\nclusters hosted on Google Cloud, and have better integration with tools like\nCloud Source Repositories, Cloud Build, and Cloud Client Libraries.\n\nIn short, Cloud Code is a powerful tool that can speed up your\nworkflow when developing cloud-native applications. It provides a streamlined\nexperience for the entire development cycle, from creating and deploying\napplications to debugging and monitoring them.\n\nSupported IDEs\n--------------\n\nYou can install the Cloud Code extension in the following IDEs:\n\n- [VS Code](/code/docs/vscode/install).\n- [IntelliJ](/code/docs/intellij/install) and other [supported JetBrains IDEs](/code/docs/intellij/ides). Cloud Code for IntelliJ also provides limited support for [Android Studio](https://developer.android.com/studio).\n\nCloud Code is available by default in the\n[Cloud Shell Editor](/code/docs/shell).\n\nSupported languages\n-------------------\n\nCloud Code supports the following languages:\n\n- Go\n- Java\n- Node.js\n- Python\n- .NET Core\n\nTo view the Cloud Code sample applications that you can use to\ntest Cloud Code's capabilities, see the [`cloud-code-samples`\nGitHub repository](https://github.com/GoogleCloudPlatform/cloud-code-samples).\n\nFeatures\n--------\n\nThis section lists all of the features for\nCloud Code for IntelliJ that you can\nexplore after\nyou've installed the Cloud Code extension.\n\n### Code with assistance from Gemini Code Assist Standard and Enterprise\n\nCloud Code integrates with\n[Gemini Code Assist](/gemini/docs/codeassist/overview) Standard\nand Enterprise, an AI-powered collaborator, to simplify development. Use Gemini Code Assist Standard or Enterprise to accomplish tasks\nmore effectively and efficiently.\n\nGemini Code Assist Standard and Enterprise aren't auto-enabled by\ndefault.\n\n[Code with Gemini Code Assist Standard and Enterprise](/gemini/docs/codeassist/write-code-gemini)\nshows you how to connect to Google Cloud, select a\nGoogle Cloud project, and enable the IAM permissions,\nbefore you can begin using Gemini Code Assist.\n\nGemini Code Assist is now a separate plugin from\nCloud Code. If you used the Gemini Code Assist and Cloud Code plugin in the past, [update your VPC Service Controls\nconfigurations to allow incoming traffic to the `Cloud Code API`](/gemini/docs/configure-vpc-service-controls).\n\nFor more information on how Cloud Code with\nGemini Code Assist handles your data, see [How Cloud Code with Gemini Code Assist handles your data](/code/docs/cloud-code-gemini-code-assist-data-governance).\n\n### Develop Google Kubernetes Engine applications\n\nCreate and run a new application with Cloud Code's\nGKE support. You can also work on an existing\napplication, customize its YAML with Cloud Code's intelligent\nauthoring support, and run it on any of your GKE\nclusters. Regardless of your workflow, Cloud Code helps you spend\nless time on configuration and context-switching, so you can focus on developing\nyour app.\n\nTo learn more about Cloud Code's support for deploying to Arm and\nmixed-architecture GKE and minikube clusters, see\n\n[Arm support](/code/docs/intellij/arm-support).\n\n\n#### Develop parts of a GKE application independently\n\nSkaffold supports using modules to develop and debug parts of your application\nindependently. Dependencies can be defined between `skaffold.yaml` configuration\nfiles and to specific modules.\n\n### Develop Cloud Run services\n\nCreate and deploy a new service with Cloud Code's\nCloud Run support, monitoring your service's progress with the\nCloud Run Explorer and service logs accessible in the Log\nViewer. If you'd prefer a local development workflow, you can also develop and\ndebug a service locally with the built-in Cloud Run emulator.\n\n### Run your GKE and Cloud Run applications in watch mode\n\nCloud Code lets you quickly apply changes to your application\nduring a development or debug session for a faster feedback loop. This lets you\nrun your Kubernetes and emulated Cloud Run sessions in watch\nmode.\n\n### Create container images\n\nCreate secure, production-ready container images from source code without having\nto worry about a Dockerfile with Cloud Code's built-in support for\nGoogle Cloud buildpacks. You get to focus on building\nyour application, not containerizing it.\n\n### Manage secrets\n\nProtect sensitive information and keep your app secure with\nCloud Code integrated Secret Manager support. You\ncan create, view, update, and use secrets in the Secret Manager\nview without having them in your codebase.\n\n### Browse Cloud APIs\n\nBrowse available Cloud APIs, enable services, and install and learn how to\nintegrate client libraries in your app without leaving your IDE and breaking\nyour development flow, all with the API library browser.\n\n### Manage virtual machine instances\n\nBrowse Compute Engine virtual machines and their relevant properties\nwithout leaving your IDE. Connect to your VM using the terminal window and\ntransfer files from your local environment to your VM all with\nCloud Code support for Compute Engine.\n\n### Migrate your App Engine application\n\n| **Caution:** As of January 31, 2024, Java 8 support for App Engine has ended, and will be deprecated on January 31, 2026. As a result, Cloud Code disables App Engine by default. To enable App Engine in your IDE, navigate to **Settings** \\\u003e **Google\n| Cloud Code** \\\u003e **App Engine** . Due to the upcoming deprecation of App Engine, we don't recommend creating new App Engine projects. For more information about App Engine deprecations, see [Feature deprecations](/appengine/docs/standard/deprecations). For more information about the runtime support schedule for App Engine, see [Runtime support schedule](/appengine/docs/standard/lifecycle/support-schedule).\n\nMigrate your App Engine application to Cloud Code, where\nyou can run and debug locally for applications in the standard environment, and\ndeploy applications in either the standard or flexible environment.\n\n### Connect to a Cloud SQL database\n\nRun Cloud SQL Auth proxy to connect to a Cloud SQL\ndatabase, view Cloud SQL instances, and create new data sources.\n\nWhat's next\n-----------\n\n- [Install Cloud Code](/code/docs/intellij/install).\n- [Deploy a GKE app](/code/docs/intellij/deploy-kubernetes-app).\n- [Deploy a Cloud Run service](/code/docs/intellij/deploy-cloud-run-app).\n\nGet support\n-----------\n\nTo submit feedback or report an issue in your IntelliJ IDE, go to **Tools** \\\u003e **Cloud Code** \\\u003e **Help / About** \\\u003e **Submit\nfeedback or report an issue** to report an issue on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-intellij/issues)."]]