Cloud Code in Google Cloud: Your Editor, Wired Straight to the Cloud
A beginner-friendly guide to Cloud Code, the set of tools that lets you build, run, debug, and deploy Kubernetes and Cloud Run applications without ever leaving your code editor.
Imagine you are a chef in a busy restaurant. Without a good setup, you walk to one room to get ingredients, another to cook, another to check orders, and another to deliver plates. You spend more time walking than cooking. Now imagine a kitchen where everything is within arm’s reach: ingredients, stove, order screen, and serving hatch. Cooking becomes faster and calmer. Cloud Code is that kitchen for people who build applications on Google Cloud. Instead of jumping between your code editor, a terminal, a web console, and a pile of configuration files, you do most of the work inside the editor you already use. This tutorial explains what Cloud Code is, what it can do, and how to use it sensibly, starting from zero.
1What Is Cloud Code?
Cloud Code is a set of plugins that bring Google Cloud into your code editor.
An IDE, short for integrated development environment, is the program where developers write code. Popular examples are Visual Studio Code and the IntelliJ family from JetBrains. Cloud Code is an add-on, often called an extension or plugin, that you install into these editors. Once installed, your editor gains new abilities: creating projects from samples, running them on a cluster, debugging them, deploying them to Google Cloud, and managing related resources.
Google’s documentation describes Cloud Code as providing IDE support for the full development cycle of Kubernetes and Cloud Run applications, from creating an application from sample templates to running the finished application. That sentence contains the whole idea: it supports you from the first day of a new project to the day it is running.
Think of Cloud Code as a remote control for Google Cloud that is built into your editor. You still write the code yourself, just as you still choose the channel on a television. The remote simply puts the buttons you need, such as run, debug, and deploy, right under your thumb.
Two words you will hear often
Kubernetes is an open source system that runs and manages containers, which are small, self-contained packages holding an application and everything it needs to run. Google Kubernetes Engine, or GKE, is Google’s managed version of it. Cloud Run is a Google Cloud service that runs containers for you without making you manage servers. Cloud Code is especially focused on these two, because both involve a lot of configuration that is tedious to manage by hand.
Cloud Code is a developer tool, not a place where your application runs. Your application still runs on your laptop, a local emulator, GKE, or Cloud Run. Cloud Code is the control panel inside your editor.
2The Problem Cloud Code Solves
Building for the cloud involves many small tools, and switching between them is slow.
To build a cloud application the traditional way, a developer writes code in an editor, builds a container image with a separate tool, writes configuration files in a format called YAML, runs commands in a terminal to deploy, opens a web console to look at logs, and repeats this loop dozens of times a day. Each switch costs a little time and attention, and each handwritten configuration file is a chance to make a typing mistake.
Context switching
Moving between editor, terminal, and browser breaks concentration and slows the build-test cycle.
Hard-to-write configuration
Kubernetes YAML files are long and picky. A wrong indent or misspelled field can fail silently or confusingly.
Slow feedback loop
Without automation, every code change means rebuilding and redeploying by hand before you see the result.
Debugging remote code
When code runs on a cluster instead of your laptop, normal debugging tools do not reach it easily.
Managing secrets and services
Passwords, API keys, and service settings are scattered across consoles and files, creating mistakes and security risks.
Without Cloud Code, writing a cloud application is like cooking while running between five separate rooms, each with one appliance. With Cloud Code, the appliances are moved into a single kitchen. You are the same cook, but you walk far less.
Cloud Code does not remove the need to understand Kubernetes or Cloud Run. It makes them easier to work with, but you still need to know what a cluster, a deployment, and a service are in order to use the tools well.
3Where Cloud Code Works: Three Environments
You can use Cloud Code in VS Code, in JetBrains IDEs, and in the browser-based Cloud Shell Editor.
Google lists three supported environments. Their feature sets are similar, but not identical, so it is wise to check the feature table for your chosen editor.
Visual Studio Code
A very popular, lightweight editor. Cloud Code installs as an extension from the extension marketplace and adds a Cloud Code section to the sidebar.
IntelliJ and JetBrains IDEs
Cloud Code works with IntelliJ and other supported JetBrains IDEs, with limited support for Android Studio, according to Google’s page.
Cloud Shell Editor
A full editor that runs in your web browser as part of Google Cloud’s Cloud Shell. Cloud Code comes built in, so there is nothing to install on your computer.
flowchart LR
VS["VS Code"] --> CC["Cloud Code"]
IJ["IntelliJ and JetBrains IDEs"] --> CC
CS["Cloud Shell Editor"] --> CC
CC --> GKE["GKE clusters"]
CC --> CR["Cloud Run"]
CC --> SVC["Secret Manager, Cloud APIs, and more"]
The three environments are like three brands of car, each with the same kind of dashboard installed. The layout of dials may differ slightly from one car to another, but all of them let you steer, accelerate, and brake.
Which one should a beginner choose?
You want zero setup
Open the Cloud Shell Editor in your browser. It is ready to use, which makes it excellent for learning and quick experiments.
You already use VS Code
Install the Cloud Code extension and keep your familiar shortcuts, themes, and other extensions.
You work mostly in Java or other JetBrains languages
Use the plugin for IntelliJ or your JetBrains IDE so that your day-to-day tools stay the same.
Feature support varies a little by environment. Google’s documentation has a feature page for each one, such as separate pages for IntelliJ and for Cloud Shell. Read the one for your editor before assuming a feature exists.
4Core Concepts You Need First
A short glossary makes everything else easier to read.
Container
A lightweight package holding your application and everything it needs, so it runs the same way anywhere.
Image
The saved blueprint of a container. You build an image once and start containers from it many times.
Cluster
A group of machines managed together by Kubernetes. In Google Cloud, a managed cluster is called a GKE cluster.
Manifest
A YAML file that describes what you want Kubernetes to run: which image, how many copies, which network settings.
Skaffold
An open source tool that automates the build-and-deploy loop. Cloud Code uses it behind the scenes and helps you edit its configuration file.
Emulator
A program on your own machine that imitates a cloud service, so you can test without deploying to the real one.
Buildpacks
A way of turning source code into a container image automatically, without you writing a container recipe by hand.
Secret
A sensitive value such as a password or an API key that must be stored safely and not placed in your code.
An image is like a recipe card with a photo of the finished dish. A container is a plate of that dish actually served. A manifest is the order slip telling the kitchen how many plates to serve and where. A cluster is the restaurant staff that carries out the orders, and Skaffold is the helpful waiter who takes the order, tells the kitchen, and brings back the plate every time you change your mind.
You do not need to master all of these terms on day one. Skim them now and return to this chapter whenever a later section uses a word you are unsure about.
5The Big Picture: What Cloud Code Offers
The features fall into a handful of groups, each matching a stage of development.
Based on Google’s documentation, Cloud Code offers these major capabilities: run-ready and debug-ready sample applications, running and debugging Kubernetes applications under development, advanced Kubernetes YAML support, resource inspection and browsing, GKE cluster creation, Cloud Run and Cloud Run functions support, Skaffold configuration editing, Secret Manager support, Cloud APIs browsing, and integration with Gemini Code Assist. Some features also touch other products such as Compute Engine and Cloud SQL, and the exact set depends on your editor.
| Stage of work | What Cloud Code gives you |
|---|---|
| Start a project | Sample applications that are ready to run and debug |
| Write configuration | Smart YAML editing support for Kubernetes and Skaffold |
| Build | Container images from source with buildpacks, and automated builds through Skaffold |
| Run | Run on GKE clusters, or locally with a Cloud Run emulator |
| Debug | Debug Kubernetes apps in development and emulated Cloud Run services |
| Deploy | Deploy services to Cloud Run and apps to GKE from the editor |
| Observe | Browse resources, view logs, and watch deployment progress |
| Secure | Manage secrets in Secret Manager from inside the editor |
flowchart LR
A["Start from a sample"] --> B["Write code and YAML"]
B --> C["Build the image"]
C --> D["Run on cluster or emulator"]
D --> E["Debug"]
E --> B
D --> F["Deploy to GKE or Cloud Run"]
F --> G["Watch logs and resources"]
The development loop is like rehearsing a play. You write the script, run a rehearsal, notice a mistake, fix the script, and rehearse again, many times. Only when the rehearsal goes well do you perform for the real audience. Cloud Code shortens the time between each rehearsal.
Assuming that every feature is identical in every editor. For example, some documentation pages describe debugging details only in the guides linked from them. Always confirm in the editor-specific pages.
6Getting Started: Install and Connect
Getting started means installing the plugin, signing in, and choosing a project.
Pick your editor
Use the Cloud Shell Editor for zero setup, or install Cloud Code into VS Code or a JetBrains IDE.
Install the plugin
Search for Cloud Code in the extension marketplace of your editor and install it. Cloud Shell Editor already includes it.
Sign in to Google Cloud
Authenticate with your Google account so the plugin can act on your behalf in your cloud projects.
Select a project
Choose the Google Cloud project that will hold your resources, so costs and permissions are clear.
Install supporting tools
Depending on your plans, you may need container tooling and a local Kubernetes option on your computer. The plugin’s own setup pages list what is required for your editor.
Create from a sample
Start with a ready-made sample, run it, and confirm that the whole path from editor to running app works.
Getting started is like moving into a furnished apartment. You collect the keys (install), prove your identity at the front desk (sign in), choose which flat is yours (project), and check that the lights and the tap work (run a sample) before bringing in your own belongings.
Create a separate Google Cloud project for learning. If you make a mistake or forget to clean up, it will not affect real systems, and you can delete the whole project when you are done.
If something fails with a permission error, the usual cause is that your account lacks the required access in that project. Ask a project owner for the specific roles needed rather than using a broad administrator role.
7Sample Applications and Templates
The fastest way to learn is to start from something that already works.
Google describes Cloud Code as providing run-ready and debug-ready sample applications. A sample is a small, complete project in a chosen language that already includes its configuration. When you create a new application, you can pick a sample instead of an empty folder. You then run it immediately and see it working before you change a single line.
See success early
A working sample proves that your tools and permissions are set up correctly.
Learn by changing
Modify a small piece, rerun, and observe the effect. This is the most natural way to learn.
Correct structure
Samples show where files belong and how the configuration relates to the code.
Debug-ready
Samples are prepared so that setting a breakpoint and stepping through code works from the start.
A sample application is like a starter kit for baking: the flour, sugar, and instructions are already measured. You can bake a cake in minutes, and then experiment with your own flavors once you trust the basic method.
Learning a new language on Cloud Run
A developer unfamiliar with containers starts from a small web service sample, runs it locally with the emulator, and deploys it to Cloud Run to see a public address working within minutes.
Trying Kubernetes for the first time
A team new to GKE starts with a sample that includes the Kubernetes files and the Skaffold file, so they can focus on understanding what each file does.
Once a sample works, copy its structure into your own project. Do not paste it blindly; read each file and remove what you do not need.
8Kubernetes Development with Cloud Code
Cloud Code makes writing, running, and debugging Kubernetes applications far less painful.
Creating and running on GKE
Per Google’s documentation, you can create and run a new GKE application or work on an existing one, and run applications on any of your GKE clusters. The plugin can also help you create a GKE cluster from within the editor. It works with local tools such as minikube and kubectl, and supports Arm and mixed-architecture clusters.
Smarter YAML
Kubernetes manifests are written in YAML, a format that depends on correct spacing. Cloud Code provides intelligent authoring support for customizing these files. In plain terms, the editor helps you complete fields, warns about problems, and offers snippets, so you make fewer typing mistakes.
Browsing cluster resources
Cloud Code lets you inspect and browse Kubernetes resources, so you can see what is running without switching to a terminal. You can look at workloads, services, and logs from a tree in the editor sidebar.
Modules for bigger applications
Large applications are made of several parts. Cloud Code supports Skaffold modules, which let you define dependencies between configuration files and develop and debug parts of the application independently. This means you can work on one service without rebuilding everything else.
sequenceDiagram
participant Dev as Developer
participant IDE as Editor with Cloud Code
participant SK as Skaffold
participant K as GKE cluster
Dev->>IDE: Run on Kubernetes
IDE->>SK: Start build and deploy
SK->>K: Deploy the application
K-->>IDE: Logs and status
Dev->>IDE: Edit code
IDE->>SK: Detect change
SK->>K: Update the running app
K-->>IDE: Fresh logs
Watch mode is like a live-preview mode in a document editor. Each time you change a sentence, the printed page on the other side of the room updates itself. You never have to press print again.
Google’s IntelliJ documentation describes running Kubernetes and emulated Cloud Run sessions in watch mode, which applies changes during development or debug sessions for faster feedback.
Developing straight against a shared production cluster. Use a separate development cluster or a local one, so a half-finished change cannot disturb real users.
9Cloud Run Development with Cloud Code
Cloud Run support lets you create, test, and deploy services without leaving the editor.
Cloud Run runs your containers and scales them automatically, even down to zero when nobody is using them. Cloud Code adds the ability to create and deploy a service from the editor, to monitor its progress in the Cloud Run Explorer, and to read its logs in the Log Viewer. Google’s overview also lists support for Cloud Run functions.
The built-in Cloud Run emulator
A key feature is a local Cloud Run emulator. It imitates Cloud Run on your own computer, so you can develop and debug a service without deploying it first. This is faster, free of cloud charges for the test runs themselves, and safer for early experiments.
flowchart LR
A["Write service code"] --> B["Run in local Cloud Run emulator"]
B --> C{"Works as expected?"}
C -->|"No"| A
C -->|"Yes"| D["Deploy to Cloud Run"]
D --> E["Check Cloud Run Explorer and logs"]
The emulator is like a flight simulator for pilots. You practice takeoffs and make mistakes safely on the ground. Only when the simulator flight goes well do you fly the real aircraft.
Building images without a recipe
Google’s IntelliJ page notes that you can build container images from source with Google Cloud buildpacks, without writing a Dockerfile. A Dockerfile is the recipe for building an image. For beginners, skipping it removes a whole topic to learn at the start, though you can adopt it later if you need finer control.
Small web API
A developer writes a simple API, tests it in the emulator, deploys to Cloud Run, and shares the public address with a colleague, all without leaving the editor.
Event-driven function
Using the Cloud Run functions support, a team writes a small function that reacts to an event, such as a file upload, and tests it locally first.
Assuming the emulator behaves exactly like the real service. It is a close imitation for development, but differences in networking, identity, and limits can exist. Always test the deployed version too.
10Debugging with Cloud Code
Debugging means pausing a running program to inspect what it is doing and why.
When software misbehaves, you need to look inside it. A debugger lets you set a breakpoint, a marker on a line of code where the program pauses. When it pauses, you can read variable values, step one line at a time, and discover where things go wrong. The challenge in cloud development is that the program is not on your laptop; it is inside a container in a cluster. Cloud Code connects your editor’s debugger to the remote container, so debugging feels almost the same as debugging local code.
Debug on Kubernetes
Run your application on a cluster in debug mode and attach the editor’s debugger to it.
Debug a Cloud Run service locally
Use the local emulator to hit breakpoints in a service before it is ever deployed.
Snapshot-based production debugging
Google’s overview lists Google Cloud Observability snapshot-based debugging for production. This captures the state of a live application without stopping it for users. Check current availability before relying on it.
A breakpoint is like pausing a live cooking video at an exact moment so you can check whether the onions have browned. Snapshot debugging is more like taking a photograph of the pan while the cooking carries on, so the dinner guests are never kept waiting.
Place a breakpoint
Click next to a line of code you want to examine.
Start the debug session
Choose the debug option for Kubernetes or for the local Cloud Run emulator.
Trigger the code
Send a request to your application so the code path runs.
Inspect and step
Look at variables, step through lines, and form a theory about the problem.
Fix and repeat
Edit the code; watch mode redeploys it so you can test the fix quickly.
Leaving debug mode switched on in an environment that real users reach. Debug configurations can slow an application and open extra access. Use them only in development.
11Skaffold: The Engine Under the Hood
Skaffold is the automation tool that makes the build, deploy, and watch loop work.
Skaffold is an open source command line tool that automates the steps between writing code and seeing it run. It reads a configuration file that describes how to build your images and how to deploy them. Cloud Code provides editing support for that file, and uses Skaffold when you press run or debug. Knowing that Skaffold exists helps you understand what the plugin is doing for you.
Build
Turn your source code into a container image.
Tag and push
Label the image and make it available to the cluster.
Deploy
Apply your manifests so the cluster runs the new image.
Watch
Detect source changes and repeat the cycle automatically.
Skaffold is like a conveyor belt in a factory. Raw material (your code) goes in at one end, and finished, packaged product (a running application) comes out at the other end. When you change the raw material, the belt starts again without anyone pressing buttons.
Why modules matter
As noted in Google’s documentation, modules allow you to define dependencies between Skaffold configuration files. For a system with a web front end, an API, and a database service, you can run only the pieces you are working on, together with the pieces they depend on. This saves time and computer memory.
You can use Skaffold without Cloud Code, from a terminal. Cloud Code simply gives it a friendly face inside your editor, along with editing help and one-click actions.
Editing generated configuration blindly. Learn what the main sections do, namely build and deploy, so that you can fix issues when an automatic run fails.
12Managing Secrets, APIs, and Other Services
Cloud Code also helps with the small supporting tasks around your application.
Secret Manager
Secrets such as passwords and keys must never be written directly into source code, because anyone who sees the code can see the secrets. Cloud Code includes a Secret Manager view where you can create, view, update, and use secrets, so that sensitive values do not need to be stored in your codebase.
Cloud APIs library
Google Cloud offers hundreds of services, each reachable through an API. Cloud Code includes an API library browser. You can browse the available Cloud APIs, enable services in your project, install client libraries, and read guidance on how to integrate them into your application.
Other services
Google’s documentation lists additional integrations in some editors. In IntelliJ, it describes browsing Compute Engine virtual machines, connecting through a terminal, and transferring files, plus running the Cloud SQL Auth proxy, viewing instances, and creating data sources. The overview page also lists support for Apigee API development, Cloud Build, Cloud Storage, and App Engine. Availability differs by editor.
Secret Manager
Store and retrieve passwords, keys, and tokens safely.
Cloud APIs
Browse, enable, and learn to use Google Cloud services from code.
Compute Engine
See virtual machines, open a terminal on them, and move files.
Cloud SQL
Connect safely to managed databases through the Cloud SQL Auth proxy.
A secret in source code is like taping your house key to the front door. Secret Manager is like a locked key cabinet in the hallway: the key is stored once, and only people with permission can take it out when needed.
Committing a password to a code repository “just for now”. Repositories keep history, so a leaked secret stays discoverable even after deletion. Rotate any secret that has ever been exposed.
13Cloud Code and Gemini Code Assist
Gemini Code Assist adds AI help to the editor; it is a related but separate product.
Google’s pages say that Cloud Code integrates with Gemini Code Assist Standard and Enterprise to help you solve code problems, generate code for your project, and receive inline suggestions. The pages also stress that Gemini Code Assist is a separate plugin and is not enabled by default. To use it you must connect to Google Cloud, select a project, and enable the required permissions.
Google’s documentation currently notes that the individual tiers of Gemini Code Assist stopped serving requests on 18 June 2026, and that affected users should migrate to Antigravity and the Antigravity command line tool. Product names and plans in this area change quickly, so confirm what is available to you before depending on it.
flowchart TD
ED["Your editor"] --> CCP["Cloud Code plugin: build, run, debug, deploy"]
ED --> GCA["Gemini Code Assist plugin: AI suggestions and chat"]
CCP --> GC["Google Cloud resources"]
GCA --> GC
Cloud Code is the toolbox full of tools, and Gemini Code Assist is a helpful colleague looking over your shoulder with suggestions. You can have the toolbox without the colleague, but the colleague is only useful when the toolbox and workshop are present.
How to use AI suggestions wisely
Treat suggestions as drafts
Read generated code and configuration before accepting it. You remain responsible for what you deploy.
Do not paste secrets into prompts
Keep passwords and personal data out of any chat or prompt, even in a trusted tool.
Test generated code
Run it in the emulator or a development cluster before it reaches production.
In a company, check whether AI coding tools are approved, and which plan and data terms apply, before using them on proprietary code.
14Cloud Shell Editor: Cloud Code Without Installing Anything
The Cloud Shell Editor is the quickest way to try Cloud Code.
Cloud Shell is a free, browser-based command line environment from Google Cloud that comes with common tools preinstalled. Its Editor is a full code editor in the same browser tab, and Cloud Code is included. You open it from the Google Cloud console and start working immediately, with your credentials already in place.
Advantages
- No installation, and nothing to configure on your computer
- Works from any computer with a browser, including a borrowed one
- Tools such as the command line for Google Cloud are already present
- Ideal for tutorials, workshops, and quick experiments
Disadvantages / Trade-offs
- Needs a reliable internet connection
- The workspace is temporary in nature and has limited resources, so it is not a replacement for a full development machine
- Less room for personalized shortcuts and large local extension collections
- Some features differ from the desktop editors
The Cloud Shell Editor is like a fully equipped hotel business center. You walk in with nothing, sit at a ready desk, and get work done. It is perfect for a short stay, but you would not run your company from there forever.
Keep your code in a repository, so nothing important lives only in the temporary workspace.
15Where Cloud Code Fits in a Delivery Pipeline
Cloud Code is for the inner loop; other tools handle the outer loop.
Software teams talk about two loops. The inner loop is what a single developer does many times a day: write, run, test, debug. The outer loop is what the team does to ship: review, build, test automatically, release, and monitor. Cloud Code lives in the inner loop. Cloud Build, Artifact Registry, Cloud Deploy, and monitoring tools live in the outer loop.
flowchart LR
subgraph Inner["Inner loop: Cloud Code"]
A["Write"] --> B["Run"] --> C["Debug"] --> A
end
C --> D["Commit to repository"]
subgraph Outer["Outer loop: team pipeline"]
D --> E["Automated build and test"]
E --> F["Release"]
F --> G["Monitor"]
end
The inner loop is a writer drafting and revising at their desk. The outer loop is the publisher’s process of editing, printing, and distributing the book. Cloud Code is the writer’s desk; it does not replace the printing press.
Deploying to production straight from a developer’s editor. It bypasses reviews and automated tests. Use the editor for development environments, and let the pipeline release to production.
Use the same Skaffold and manifest files in both loops where possible, so what you test on your machine is what the pipeline deploys.
16Security and Access
Because Cloud Code acts as you, your account’s permissions define what it can do.
When you sign in, Cloud Code uses your Google identity to call Google Cloud services. That means it can do anything your account is allowed to do in the selected project. This is convenient, but it also means a careless action in the editor, such as deleting a cluster, has real effects.
Least privilege
Give developer accounts only the roles they need in development projects.
Separate projects
Use different Google Cloud projects for development, testing, and production.
No secrets in code
Use Secret Manager and keep keys out of repositories and logs.
Service identities for apps
Let deployed applications use their own service accounts with narrow permissions, never a developer’s personal account.
Review audit logs
Google Cloud records administrative actions, so you can see who changed what.
Trust only needed extensions
Install plugins from official publishers, since editor extensions can read your code.
Your signed-in Cloud Code is like a master key card on your lanyard. Wherever you walk, doors open for you. That is helpful, but you should carry a card that opens only the rooms you really need, and you should not lend it to anyone.
Working in the production project “just to check something” and then running a deploy or delete by accident. Make the project name visible in your editor, and prefer separate accounts or restricted roles for production.
17Cost: What Does Cloud Code Cost?
The plugin itself is not where the costs come from; the resources you use are.
Google’s overview pages describe the features of Cloud Code but do not include a price for the plugin. In practice, charges come from the Google Cloud resources you create and use through it: GKE clusters, Cloud Run requests and compute time, storage, builds, and any paid add-on products. Gemini Code Assist has its own plans, described on Google’s Gemini pricing page, and is separate from Cloud Code. Confirm the current terms on the official pages before budgeting.
| Item | Where the cost comes from |
|---|---|
| Cloud Code plugin | No price is stated on the feature pages I reviewed; verify on Google’s site |
| GKE cluster you run on | Cluster management fees and the machines that make up its nodes, as shown on GKE pricing |
| Cloud Run services | Usage-based: requests, compute time, and memory |
| Image builds and storage | Build minutes and stored images |
| Gemini Code Assist | Separate plans, see the Gemini pricing page |
| Local emulator and minikube | Run on your own computer, so no cloud charge for those test runs |
Cloud Code is like the steering wheel of a rented car: using it is not what costs money. The rental fee, fuel, and tolls are the cloud resources you drive around with. The more you leave the engine running, the more you pay.
Habits that keep bills small
Prefer the local emulator and minikube for early work
They run on your own machine without cloud charges.
Delete clusters when you stop
A forgotten test cluster keeps billing every hour.
Use small development clusters
You do not need production-size machines to test a feature.
Set budgets and alerts
Create a billing budget on your learning project, so unexpected charges trigger an email early.
Prices and free allowances change. Use the official pricing pages and calculator for the products you use, and treat any figure in a tutorial as outdated until you verify it.
18Troubleshooting and Anti-Patterns
Most beginner problems fall into a few familiar groups.
Common problems and first checks
| Symptom | Likely cause | First thing to check |
|---|---|---|
| Sign-in or permission errors | Wrong account or missing role | Which account and project the plugin is using |
| Run fails to build | Missing tools or a broken configuration file | The build output and the Skaffold file |
| App deployed but does not respond | Wrong port or failing health check | The workload status and logs |
| Breakpoint never hits | Debug mode not active, or code path not triggered | That the debug session is attached and a request was sent |
| Changes do not appear | Watch mode off or the build failed | The run output for errors |
| Unexpected charges | A resource left running | The list of clusters and services in the project |
Anti-patterns
Problem
A developer tests every small change by deploying to a shared cloud cluster.
Why It’s Harmful
It is slow, costs money, and can disturb colleagues who share the same environment.
Correct Approach
Test first with the local emulator or a local cluster, then deploy to a personal or team development environment.
Problem
The team uses powerful personal accounts to work in production projects directly from the editor.
Why It’s Harmful
One mistaken click can change or delete production resources with no review.
Correct Approach
Limit editor access to development projects and release to production through a reviewed pipeline.
Problem
Secrets are stored in configuration files that are committed to the repository.
Why It’s Harmful
Anyone with repository access, or any future leak, exposes those credentials.
Correct Approach
Store secrets in Secret Manager and reference them at run time.
Problem
Test clusters and services are created for experiments and never cleaned up.
Why It’s Harmful
They keep consuming money and widen the attack surface.
Correct Approach
Use a dedicated learning project with a budget alert, and delete resources when finished.
19Advantages, Trade-offs, and Alternatives
Every tool has strengths and limits; knowing both helps you choose well.
Advantages
- One place for the build, run, debug, and deploy loop
- Runs in popular editors, so you keep your familiar tools
- Helpful YAML authoring reduces configuration mistakes
- Local Cloud Run emulator allows fast, low-cost testing
- Sample apps shorten the path to a first working project
- Secret Manager and API browsing built in
Disadvantages / Trade-offs
- Focused on Google Cloud, Kubernetes, and Cloud Run, so it is not a general-purpose cloud tool
- Feature sets vary by editor, which can surprise teams that mix editors
- You still need to learn Kubernetes and container basics
- Automatic behavior can hide details, which makes failures harder to understand at first
- Related AI product names and plans change often
Related tools
| Option | What it is | When to prefer it |
|---|---|---|
| Cloud Code | Editor plugins for Kubernetes and Cloud Run development | You build for GKE or Cloud Run and want an integrated editor experience |
| Command line tools directly | The Google Cloud CLI, kubectl, and Skaffold in a terminal | You like terminals, need scripts, or work on build servers |
| Google Cloud console | Web interface for managing resources | Occasional administration and visual inspection |
| Cloud Build and Cloud Deploy | Automated build and release services | Team pipelines, the outer loop |
| Generic Kubernetes editor plugins | Cloud-neutral tools for any cluster | You work across several clouds and want one common experience |
flowchart TD
Q["What do you need?"] --> A{"Build apps for GKE or Cloud Run?"}
A -->|"Yes"| B{"Want integrated editor workflow?"}
B -->|"Yes"| CC["Use Cloud Code"]
B -->|"No, prefer terminal"| CLI["Use CLI tools with Skaffold"]
A -->|"No"| C{"Release to production for a team?"}
C -->|"Yes"| PIPE["Use Cloud Build and Cloud Deploy"]
C -->|"No, just inspect"| CON["Use the Cloud console"]
20Real-World Scenarios
Here is how different people typically use Cloud Code day to day.
A student learning cloud development
Opens the Cloud Shell Editor, picks a sample, runs it, changes a message, redeploys, and sees the result. No installation on a shared college computer is needed.
A startup shipping its first API
Builds a small service, tests it in the Cloud Run emulator on a laptop, deploys to Cloud Run, and reads logs in the editor. The team stays small because the tooling is simple.
A platform team onboarding developers to Kubernetes
Provides standard samples and configuration with Skaffold modules, so new developers can run a service and its dependencies on a development cluster on their first day.
A Java enterprise team using IntelliJ
Uses the JetBrains plugin to debug services running on a cluster, browse Compute Engine machines, and connect to Cloud SQL through the proxy, all without changing their familiar editor.
A security-conscious team handling credentials
Uses the Secret Manager view to manage keys, avoiding passwords in repositories and keeping production access limited to the pipeline.
21Best Practices Checklist
Follow these habits and most beginner trouble disappears.
Begin with a sample
Prove your setup works before writing your own code.
Test locally first
Use the emulator or a local cluster before using cloud resources.
Understand the generated files
Read the manifests and Skaffold file so you can fix them when needed.
Separate environments
Use different projects for development, testing, and production.
Keep secrets out of code
Use Secret Manager and rotate anything that leaks.
Let pipelines release to production
Use the editor for the inner loop, and automation for the outer loop.
Clean up and set budgets
Delete unused clusters and services, and keep billing alerts on.
Review AI suggestions
Treat generated code as a draft, and test it before use.
22Frequently Asked Questions
Quick answers to questions beginners ask most.
It is a set of plugins for VS Code, JetBrains IDEs, and Cloud Shell that supports creating, running, debugging, and deploying Kubernetes and Cloud Run applications from inside your editor.
No. Cloud Shell is a browser-based command line environment, and its Editor is one of the three places Cloud Code can be used. Cloud Code is the plugin set; Cloud Shell is one of its homes.
Not in depth. Samples and helpful tools let you start quickly, but learning the basic ideas of containers, clusters, and manifests will help you a great deal.
Some local features, such as the Cloud Run emulator, run on your computer. To deploy to Google Cloud, use cloud services, or sign in to the Cloud Shell Editor, you need an account and a project.
It is a built-in local imitation of Cloud Run that lets you develop and debug a service on your own machine before deploying.
Cloud Code uses Skaffold for Kubernetes workflows and helps you edit its configuration file. You mostly interact with it through the editor.
Through a Secret Manager view where you can create, view, update, and use secrets, so sensitive values need not live in your codebase.
They work together but are separate plugins. Google’s pages say Gemini Code Assist is not enabled by default and has its own plans, and they note that individual tiers stopped serving requests on 18 June 2026.
The feature pages I reviewed give no price for the plugin itself. Costs come from the cloud resources you use, such as clusters and Cloud Run. Verify on Google’s official pages.
Google’s IntelliJ page mentions limited support for Android Studio. Check the supported IDEs page for current details.
Generally no. Use the editor for development, and release to production through a reviewed, automated pipeline.
23Summary and Key Takeaways
Cloud Code brings Google Cloud into the editor you already use. It supports VS Code, JetBrains IDEs, and the browser-based Cloud Shell Editor, and covers the full development cycle for Kubernetes and Cloud Run applications. Starting from run-ready samples, it helps you write configuration with intelligent YAML support, build images, run on GKE clusters or in a local Cloud Run emulator, debug, and deploy, while Skaffold automates the loop behind the scenes. It also offers Secret Manager, a Cloud APIs browser, and integrations that vary by editor, and it sits beside Gemini Code Assist, which is a separate and changing product. Used with local testing, separate environments, careful permissions, and a proper release pipeline, it makes cloud development calmer and faster.
Key Takeaways
- An editor-side toolkit — Cloud Code is a plugin set for VS Code, JetBrains IDEs, and Cloud Shell, not a place where your app runs.
- Built for Kubernetes and Cloud Run — It supports creating, running, debugging, and deploying both, starting from ready-made samples.
- Test locally first — The Cloud Run emulator and local Kubernetes options give fast, low-cost feedback before cloud deployment.
- Skaffold does the automation — Build, deploy, and watch happen behind the scenes, and modules let you work on parts of a big system.
- Protect secrets and access — Use Secret Manager, least privilege, and separate projects, because the plugin acts with your permissions.
- Inner loop versus outer loop — Use Cloud Code for daily development, and automated pipelines for releasing to production.
- Verify the moving parts — Feature sets vary by editor, and AI-related products and pricing change often, so check Google’s current pages.