Guide

How to Run VS Code on a Cloud Ubuntu Desktop (2026 Guide)

Run desktop VS Code on a cloud Ubuntu machine for heavy builds, GPU work, and containers. Setup, use cases, costs, and a comparison with Codespaces.

On this page

Quick answer: To run VS Code in the cloud, launch a cloud Ubuntu desktop (for example on Vagon), install VS Code with a single command, and develop in a full Linux desktop environment you can reach from any device. Unlike a browser-only coding environment, you get a real desktop with an optional GPU, so you can run heavy builds, containers, GUI tools, and machine learning work alongside your editor, and you pay only for the hours you use.

Key takeaways

  • VS Code on a cloud desktop is the full desktop editor inside a complete Linux environment, not just a browser tab.

  • It's ideal for heavy builds and compiles, container work, GPU-accelerated development, and large projects that strain a laptop.

  • An optional GPU enables machine learning and other CUDA work right alongside your code.

  • You can develop from any device, including an iPad or Chromebook, with the real work on a capable machine.

  • Every machine is an isolated, resettable VM, great for trying things safely.

  • It's billed by the minute, ideal for focused development sessions and a poor fit for an always-on server.

Here's the catch buried in "run VS Code in the cloud": VS Code runs on almost anything, so the cloud only earns its place when it gives you something your laptop can't. And it does, in specific situations: a machine powerful enough to compile a huge project in a fraction of the time, a GPU sitting right under your editor for machine learning work, a full Linux environment that matches production, containers running without straining your machine, and the ability to drive all of it from a thin device. That's what running desktop VS Code on a cloud Ubuntu machine offers.

This isn't about replacing your local editor for everyday coding, where local is perfectly fine. It's about the times your development work outgrows your hardware, or you want a clean, powerful, disposable Linux dev box. This guide covers exactly when that's worth it, how to set it up, and how it differs from browser-based cloud coding environments.

Why run desktop VS Code on a cloud machine

Let's be specific about what the cloud adds, because for light coding it adds little and honesty matters here.

Heavy builds and compiles finish faster

The clearest win. Compiling a large codebase, building a big project, or running a heavy test suite is CPU-bound work that a powerful cloud machine does much faster than a laptop. If you regularly wait on long builds, a machine with more cores turns that wait into something shorter, and it frees your own machine during the build.

A GPU right under your editor

VS Code is a common home for machine learning and data work. On a GPU cloud desktop, you can develop and run GPU-accelerated code, train models, run CUDA workloads, directly on the same machine as your editor, with drivers already configured. That's something a laptop without an NVIDIA GPU simply can't do.

A full Linux environment that matches production

Developing on a real Ubuntu desktop means your environment matches Linux production servers, avoiding the subtle differences that catch people out when developing on a different OS. You get the real tools, the real package manager, and the real behavior.

Containers and services without straining your machine

Running containers, databases, and local services for development is resource-hungry. A cloud machine with generous resources runs your whole local stack comfortably, while your own computer stays free.

An isolated, disposable dev box

Every machine is a separate VM you can reset. That's ideal for trying a new toolchain, working on an untrusted codebase, or wanting a clean environment, without cluttering or risking your main setup.

Develop from any device

Because the desktop streams to you, you can develop from an iPad, a Chromebook, or a light laptop, with the heavy work on a capable machine.

How this differs from browser-based cloud coding

It's worth being clear about this, since browser-based cloud coding environments exist and serve a real purpose.

A browser-based coding environment gives you an editor in the browser, tightly integrated with a code repository, ideal for pure coding tied to a project. Running desktop VS Code on a cloud Ubuntu machine is different: you get the full desktop editor inside a complete Linux desktop, with a real browser, a file manager, GUI tools, and an optional GPU. The difference is scope. A browser coding environment is a coding tool; a cloud desktop is a whole computer that happens to run your editor.

That difference matters when your work extends beyond the editor. If you need a GPU, native GUI applications, a full desktop browser to test against, or a general-purpose Linux machine, the cloud desktop covers cases a browser coding environment can't. If your work is purely editing code in a repo, a browser environment may be leaner. Choose based on whether you need more than an editor.

When it's the right call, and when to skip it

A cloud desktop is a burst tool, billed by the minute. It's the right call when you have heavy builds or compiles, GPU-accelerated development, container-heavy or resource-hungry local stacks, a need for a production-matching Linux environment, or you want to develop from a limited device. You spin it up, work, and shut it down.

It's the wrong call for light everyday coding on a capable laptop, where local VS Code is free and simpler, and for running an always-on server, where a cheap VPS is the better tool. The cloud shines specifically when your development outgrows your hardware or you want a powerful, disposable Linux dev box.

What You'll Need

  • A Vagon account with a payment method.

  • An Ubuntu plan. For heavy builds, choose more CPU; for GPU development, choose a GPU plan; for light coding, a modest plan is fine.

  • Optionally, persistent storage to keep your code, tools, and environment between sessions.

Step 1: Launch an Ubuntu machine

Create a computer on Vagon, choose Linux, and pick a plan matched to your work, more CPU for heavy builds, a GPU plan for ML development. It boots in about 90 seconds.

Step 2: Install VS Code

Install through Snap, or download the official .deb from Microsoft:

Step 3: Set up your runtimes and tools

Install the languages, runtimes, and tools your project needs, for example:




Step 4: Clone your project and install extensions

Clone your repository, open it in VS Code, and install the extensions you use. Configure Git with your identity so commits are attributed correctly.

Step 5: Add persistent storage

Add persistent storage so your code, installed tools, and VS Code setup persist between sessions, letting you pick up exactly where you left off.

Setting up a complete dev environment

A cloud desktop lets you build a full, production-matching development environment, and doing it once, with persistent storage, means it's ready every session.

Beyond the editor, install your language toolchains, your version managers, your database and service dependencies, and any command-line tools your workflow relies on. Because it's a full Ubuntu desktop, everything installs the normal Linux way, and you can run your services, your database, your local server, right alongside your editor. Configure your shell, your dotfiles, and your environment to match how you like to work.

The advantage over a purely local setup is a clean, powerful, reproducible environment that isn't entangled with your personal machine. The advantage over a browser coding environment is that you have the whole system, so nothing is off-limits: GUI tools, a full browser, a GPU. Scripting your setup, or keeping it on persistent storage, means a fresh machine becomes your full dev box in minutes.

Heavy builds, containers, and GPU work

This is where the cloud machine's power earns its place, so it's worth detailing.

For heavy builds and compiles, a machine with more cores parallelizes the work and finishes faster, and because it's happening on the cloud machine, your own computer stays responsive. Long builds that dominate your laptop become background jobs on capable hardware.

For container work, a cloud desktop runs your containers and your local stack without the resource strain that bogs down a laptop. You can run a realistic local environment, multiple services, a database, supporting tools, comfortably.

For GPU development, a GPU plan puts an NVIDIA card with configured drivers right under your editor. You develop and run machine learning code, train models, and execute CUDA workloads on the same machine you're coding on, watching the results in your terminal or notebooks. This tight loop of editing GPU code and running it immediately, on real GPU hardware, is something a laptop without an NVIDIA GPU can't offer.

Extensions and the full desktop advantage

VS Code's extensions work exactly as they do locally, and the full desktop adds capabilities a browser environment lacks.

Install your usual extensions, language support, linters, debuggers, and productivity tools, and they run natively. The full desktop advantage shows in the extensions and workflows that assume a real environment: running and debugging against local services, using a full desktop browser for testing, running GUI tools your workflow needs, and integrating with the complete Linux system. Because you have the whole machine, you're not limited to what fits in a browser tab.

This completeness is the point of using a desktop rather than a browser coding environment. When your development touches more than the editor, the full desktop covers it.

Developing from any device

Because the desktop streams to you, your powerful Linux dev box follows you across devices. Start work at your desk, continue from an iPad on the move, finish from a Chromebook, all on the same machine with the same environment and open files, and the work keeps running in the background between sessions. A keyboard and, ideally, a trackpad or mouse make coding from a tablet comfortable, and a good connection keeps the editor responsive. It's a genuinely nice way to have a full development environment without carrying a powerful laptop everywhere.

Development stacks and how the cloud helps each

Different kinds of development benefit from a cloud desktop in different ways, so it's worth mapping the common ones.

Web and full-stack development. These projects often involve a frontend build, a backend, a database, and supporting services. Running the whole stack locally can strain a laptop, especially with a heavy build step or several services. A cloud machine runs the full stack comfortably, and you develop against it in VS Code with a real browser right there to test the running application. The build and dev-server work that bogs down a laptop happens on capable hardware.

Machine learning and data science. This is where the GPU matters most. On a GPU cloud desktop, you write and run training and inference code in VS Code, with notebooks, terminals, and the GPU all on one machine. The tight loop of editing code and running it on real GPU hardware is the whole appeal, and it's impossible on a laptop without an NVIDIA card.

Systems and compiled-language development. Languages that compile, and large codebases in general, benefit from more cores, since build and compile times scale with CPU. A cloud machine with plenty of cores turns long builds into short ones, and developing on native Linux matches how this software typically runs in production.

Mobile and cross-platform backends. Backend services and APIs, often containerized, benefit from the resources to run a realistic environment and from matching Linux production. VS Code plus containers plus a real Linux host covers this well.

Learning and experimentation. For anyone learning a new stack, framework, or toolchain, a disposable cloud dev box is ideal: set it up, learn, and reset if you make a mess, without cluttering your main machine.

The common thread is that the cloud helps most when your work involves heavy computation, GPU acceleration, resource-hungry services, or a need for a clean Linux environment, and helps least for light editing that any machine handles.

Getting code in and out

For code, Git is usually the cleanest path: clone your repository onto the machine, work, and push your changes back off. Your code lives in version control, so it's safe and portable. For other files and assets, use the browser, the file manager, or a sync tool. With persistent storage, your working code and environment stay on the machine between sessions, though committing and pushing regularly is still good practice so your work is safely in your repository.

Cost breakdown

Your cost is the machine's running time billed by the minute, plus optional persistent storage (about five dollars per 50GB per month) for your code and environment, plus outbound transfer beyond the included 10GB per month, which normal development rarely approaches.

The honest framing: for heavy builds, GPU development, and resource-hungry work, a cloud desktop is efficient and you pay only for active hours. For light coding on a capable laptop, local VS Code is free and simpler, and for an always-on server, a cheap VPS wins. Work in focused sessions, keep your environment on persistent storage, and shut the machine down when you're done.

Real-world use cases

  • The developer with long builds. A large codebase takes ages to compile on your laptop. A cloud machine with more cores builds it faster and frees your own computer.

  • The ML engineer coding in VS Code. You want a GPU right under your editor to train and run models. A GPU cloud desktop provides it, drivers configured.

  • The developer needing a Linux environment. You develop for Linux servers but aren't on Linux locally. A cloud Ubuntu desktop matches production.

  • The developer on a light device. You want a powerful dev box but only have an iPad or Chromebook. A streamed cloud desktop delivers it.

  • The tinkerer trying a new toolchain. An isolated, resettable VM is a safe place to experiment without risking your main setup.

Troubleshooting

Builds aren't faster than my laptop

Make sure you chose a plan with enough CPU cores for your build, since build speed scales with cores. Confirm your build actually parallelizes across cores.

VS Code extensions behave differently

On a full desktop, extensions run natively as they do locally. If something depends on a specific tool, make sure that tool is installed on the machine. The full environment means most extensions work exactly as expected.

The editor feels laggy

That's usually your connection to the streamed desktop rather than VS Code. Lower the stream resolution or move to a better network.

My environment is gone next session

You didn't add persistent storage, so the machine reset. Add persistent storage, or script your setup, so your environment is ready each session. Keep your code in Git regardless.

So, is it worth it?

Running desktop VS Code on a cloud Ubuntu machine isn't about replacing your local editor for everyday coding. It's about the times your work outgrows your hardware: heavy builds, GPU development, container-heavy stacks, a production-matching Linux environment, or the freedom to develop from any device. You get the full editor inside a complete, powerful, disposable Linux desktop, billed by the minute. Keep your environment on persistent storage, work in focused sessions, and shut the machine down when you're done.

Ready for a dev box that keeps up with your builds? Create a Vagon account, launch an Ubuntu machine, install VS Code, and you'll be coding in a few minutes.

Frequently Asked Questions

How is this different from GitHub Codespaces or browser coding environments?

A browser coding environment is an editor in the browser tied to a repo. Running desktop VS Code on a cloud Ubuntu machine gives you the full editor inside a complete Linux desktop, with a real browser, GUI tools, and an optional GPU. Choose the desktop when you need more than an editor.

Can I use a GPU with VS Code in the cloud?

Yes, on a GPU plan. You get an NVIDIA card with configured drivers, so you can develop and run GPU-accelerated code, including machine learning, right alongside your editor.

Will my code and setup persist between sessions?

With persistent storage, yes, your code, tools, and environment stay on the machine. Keeping your code in Git is good practice regardless, so it's safely in your repository.

Can I run containers on a cloud VS Code machine?

Yes. It's a full Ubuntu desktop, so you can run containers and your local stack, and a capable plan handles them without straining your own computer.

Is this good for everyday light coding?

For light coding on a capable laptop, local VS Code is free and simpler. The cloud is worth it specifically for heavy builds, GPU work, container-heavy stacks, or when you want a powerful, disposable Linux dev box.

Can I develop from an iPad or Chromebook?

Yes. The streamed desktop runs on thin devices, so you can use a full VS Code dev environment from an iPad or Chromebook, with the real work on a capable machine. A keyboard and pointer make it comfortable.

Does the cloud machine match a Linux production server?

A cloud Ubuntu desktop gives you a real Linux environment, which is much closer to Linux production servers than developing on another OS, helping you avoid platform-specific surprises.

Can I use VS Code's remote and container features here?

Yes. On a full desktop you can use VS Code's various workflows, including working with containers and local services, since you have the complete system available.

How do I keep costs down?

Work in focused sessions, choose a plan matched to your work, keep your environment on persistent storage so setup is fast, and shut the machine down when you're done. For an always-on service, use a cheap VPS instead.

Is my code private on a cloud machine?

Each machine is an isolated VM with an encrypted connection. Use good practices with credentials, keep secrets managed sensibly, and your code stays on a machine separate from others.

Vagon Computer

Run it on a cloud computer

Open it from any browser, Mac, iPad or Chromebook. No local hardware needed.

Vagon Computer

Run it on a cloud computer

Open it from any browser, Mac, iPad or Chromebook. No local hardware needed.

Written by

Mert Boz

Mert is a philosophy student with a strong interest in economics, motorsports, and basketball. He enjoys thinking about how the world works, both in theory and in real life. In his free time, you can often find him watching a race, following a basketball game, or reading about economic ideas.

More posts by this writer →

Related

More on Cloud PCs & Performance

All posts →

Cloud PCs & Performance

Comparison

Googlebook vs Chromebook for Creative Work

·

14 min read

Cloud PCs & Performance

Comparison

Best TeamViewer, AnyDesk and Splashtop Alternatives

·

18 min read

Cloud PCs & Performance

Comparison

Best Paperspace Alternatives After the Migration

·

14 min read

Vagon Computer

Run this guide on a cloud computer.

Open it from any browser, Mac, iPad or Chromebook. No local hardware needed.

Vagon Computer

Run this guide on a cloud computer.

Open it from any browser, Mac, iPad or Chromebook. No local hardware needed.