Skip to content

Instantly share code, notes, and snippets.

@mikaelvesavuori
Created November 30, 2019 15:48
Show Gist options
  • Save mikaelvesavuori/ca5d41f132ac7ce00556bf816ff60eea to your computer and use it in GitHub Desktop.
Save mikaelvesavuori/ca5d41f132ac7ce00556bf816ff60eea to your computer and use it in GitHub Desktop.
Visual Studio Code in Google Cloud Shell
# Use Visual Studio Code in Google Cloud Shell
# As posted at: https://medium.com/google-cloud/how-to-run-visual-studio-code-in-google-cloud-shell-354d125d5748
# Export version variable
export VERSION=`curl -s https://api.github.com/repos/cdr/code-server/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'`
# Download
wget https://github.com/cdr/code-server/releases/download/$VERSION/code-server$VERSION-linux-x64.tar.gz
# Unzip
tar -xvzf code-server$VERSION-linux-x64.tar.gz
# Go to folder
cd code-server$VERSION-linux-x64
# Start
./code-server --no-auth --port 8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment