george alonge
reliability

How to Setup a Complete Development Environment in the Cloud using Google Cloud Shell & VSCode

Set up a fully functional cloud-based development environment using Google Cloud Shell and VS Code for remote development.

Setting up a consistent development environment across machines can be tedious. Google Cloud Shell provides a free, browser-based development environment with 5GB of persistent storage, and you can connect to it using VS Code for a premium development experience.

What is Google Cloud Shell?

  • Free virtual machine (e2-small) with Debian Linux
  • 5GB of persistent home directory storage
  • Pre-installed tools: gcloud, kubectl, docker, git, terraform, and more
  • Built-in code editor (Theia-based)
  • Web preview on ports 8080-8084

Connecting VS Code to Cloud Shell

  1. Install the "Cloud Code" extension in VS Code
  2. Sign in with your Google Cloud account
  3. Use the Remote - SSH extension for a full remote development experience

Benefits

  • Consistency: Same environment everywhere
  • No local setup: Everything runs in the cloud
  • Free: Included with any GCP account
  • Powerful: Direct access to GCP services