~/alonge.dev — how-to-setup-development.md
home.mdessays/how-to-setup-development.md
👁 preview
title:how to setup a complete development environment in the cloud using google cloud shell & vscode
date:2020-10-11
read:5 min
tags:[gcp, developer-tools, vscode, cloud-shell]
series:none
aliases:[how-to-setup-development-environment-google-cloud-shell-vscode]

how to setup a complete development environment in the cloud using google cloud shell & vscode

gcpdeveloper-toolsvscodecloud-shell

set up a fully functional cloud-based development environment using google cloud shell and vs code for remote development.

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

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
don't miss the next note

open the next note in your inbox.

i'll send each new essay the morning it ships. nothing else.

connected·essays/2020/how-to-setup-development-environment-google-cloud-shell-vscode.md·PREVIEW149 words·976 chars·ln 1, col 1·● saved