VS Code on the Cloud

Visual Studio Code

VS Code Demo | source-image: blogs.sap.com

But why cloud?

Code-Server

Installing code-server

  • A system running a Linux Distribution (preferably Debian)
  • 1 GB RAM and 2 CPU Cores

SSH and updating pacakges

ssh <username>@<ip_adress of the machine>
sudo apt update && sudo apt upgrade
curl -fsSL https://code-server.dev/install.sh | sh

Configuration

sudo systemctl enable code-server@<your_username>
sudo systemctl start code-server@<your_username>
sudo systemctl status code-server@<your_username>
Output of sudo systemctl status code-server@<your_username>

Setting up the Web-Interface

Exposing code-server to the internet

sudo apt install -y nginx certbot python3-certbot-nginx
server {
listen 80;
listen [::]:80;
server_name <your_domain>;

location / {
proxy_pass http://localhost:8080/;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
proxy_set_header Accept-Encoding gzip;
}
}
# Nginx configuration file | source

Enabling HTTPS

Installing Extensions

  • Command Line
  • Web Interface

Conclusions

--

--

https://blog.kalyanmudumby.me/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store