Cloud Code 是一个扩展程序,可将许多 Google Cloud服务(例如 Google Kubernetes Engine 和 Cloud Run)直接整合到 IDE 中,因此您无需上下文切换即可开发应用。您还可以借助 AI 赋能的协作工具 Gemini 编写代码,它可以帮助您解决代码问题、为项目生成代码,并在您编写代码时提供内嵌建议。
您可以获得对 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-08-11。"],[[["\u003cp\u003eCloud Code brings Google Cloud services directly into your IDE, allowing you to develop applications for GKE and Cloud Run without context switching.\u003c/p\u003e\n"],["\u003cp\u003eIt offers support for the complete development cycle, from creating applications using templates to monitoring deployed resources, along with run-ready samples and configuration snippets.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code integrates with tools like Skaffold, minikube, kubectl, and Google Cloud SDK, providing continuous feedback and a unified authentication experience.\u003c/p\u003e\n"],["\u003cp\u003eWith built in support for Gemini, Cloud Code offers AI-powered assistance for code generation, problem-solving, and inline suggestions.\u003c/p\u003e\n"],["\u003cp\u003eCloud Code enables streamlined development of container images, secret management, browsing Cloud APIs, and managing virtual machines, all within your chosen IDE.\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\nand 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 VS Code\nthat 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/vscode/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### Replatform Linux applications to a container\n\nThe [Migrate to Containers](/migrate/containers/docs/getting-started)\nintegration with Cloud Code lets you replatform an existing\napplication to a container using the Cloud Code extension in your\nIDE on a Linux machine.\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### Develop APIs with Apigee\n\nDevelop your API proxies and verify the capabilities through unit and manual\ntesting using the Apigee Emulator (local runtime). Iterate\nthrough build and test cycles without impact to dependent applications.\n\nWhat's next\n-----------\n\n- [Install Cloud Code](/code/docs/vscode/install).\n- [Deploy a GKE app](/code/docs/vscode/deploy-kubernetes-app).\n- [Deploy a Cloud Run service](/code/docs/vscode/deploy-cloud-run-app).\n\nGet Support\n-----------\n\nTo send feedback, report issues on [GitHub](https://github.com/GoogleCloudPlatform/cloud-code-vscode/issues), or ask a question on [Stack Overflow](https://stackoverflow.com/questions/ask?tags=cloud-code-vscode)."]]