Start Coding in Your Browser With Microsoft Visual Studio Online

Open https://vscode.dev in Chrome, Edge, Firefox or Safari to start coding in your browser today, because Microsoft retired the Visual Studio Online service in February 2021.

This guide covers the three browser options that replaced it (vscode.dev, github.dev and GitHub Codespaces), how to run a real app in the cloud, and what each one costs.

VS Code for the Web showing a GitHub repository and Command Palette open
None of the three browser options clone the repository; edits sit in browser storage until you commit them. (Image: code.visualstudio.com)

Start Coding Instantly With VS Code for the Web

VS Code for the Web is free, needs no install and runs entirely inside the browser tab. It is the closest thing to the old Visual Studio Online editor that still exists.

  1. Go to https://vscode.dev in the latest version of Edge, Chrome, Firefox or Safari.
  2. Press F1 to open the Command Palette, type New File and select File: New File.
  3. Save the file as index.html on your computer when prompted, then type a few lines of HTML.
  4. To work on a whole project, select Open Folder and allow the browser to access the folder. Folder access works in Edge and Chrome only; other browsers open single files.
  5. Select the Extensions icon in the Activity Bar and install web-compatible extensions. Extensions that cannot run in the browser show a warning icon and a Learn Why link.
  6. Double-click the saved index.html in File Explorer or Finder to view the page in your browser.

HTML, CSS, JSON and Markdown get near-desktop editing on vscode.dev. JavaScript, TypeScript and Python get rich single-file completions and syntax errors. There is no terminal or debugger, so nothing is compiled or run inside the tab.

What “Visual Studio Online” Means Today

Microsoft used the name Visual Studio Online for two different products. Neither exists under that name now, which is why old tutorials lead to dead links.

Date What happened Where it lives now
2013 Microsoft launched Visual Studio Online as its hosted team service for source control, work items and builds. Renamed Visual Studio Team Services (VSTS)
September 10, 2018 VSTS became Azure DevOps. Azure DevOps Services, including Azure Repos
November 2019 Microsoft reused the Visual Studio Online name for a public preview of cloud-hosted dev environments with a browser editor. See the next rows
April 30, 2020 That browser environment was renamed Visual Studio Codespaces. See the next rows
September 4, 2020 Microsoft announced Visual Studio Codespaces would consolidate into GitHub Codespaces. GitHub Codespaces
December 16, 2020 Creation of new Visual Studio Codespaces plans and codespaces was disabled. GitHub Codespaces
February 17, 2021 The Visual Studio Codespaces portal was retired and remaining codespaces were deleted. GitHub Codespaces, plus the free vscode.dev and github.dev editors

Any tutorial that asks you to create a Visual Studio Codespaces plan in Azure describes a service that no longer runs. The full Windows IDE is a separate desktop product; see Download Microsoft Visual Studio for PC, Windows 11 if that is what you need.

Choose the Right Browser Coding Option

Your situation Use this Why
Learning HTML, CSS or JavaScript, or editing a local file vscode.dev Free, no account needed, opens in seconds
Fixing a typo or reviewing code in a GitHub repository github.dev (press . on the repo) Free, commits straight to GitHub, no setup
Browsing or editing an Azure Repos repository vscode.dev/azurerepos Reads, searches and commits to Azure Repos
Running a server, tests or a build from a terminal GitHub Codespaces A real Linux VM with a terminal and debugger
A team that needs identical tools for every developer GitHub Codespaces with a dev container The environment is defined in the repository
Using your own PC or VM from any browser vscode.dev with Remote – Tunnels Brings your own compute to the browser editor

What You Need Before You Start

Requirement vscode.dev github.dev GitHub Codespaces
Browser Latest Chrome, Edge, Firefox or Safari Same Same
Account None for local files A GitHub account, signed in A GitHub account, signed in
Open a local folder Edge or Chrome (File System API) Not applicable Not applicable
Payment method No No Only beyond the monthly free quota
Repository Optional Any repository you can view A branch that is not empty, or a template

Tablets such as iPads work with both vscode.dev and Codespaces, though smaller screens have some limits.

Open a GitHub Repository in the Browser

Three routes open the same editor. None of them clones the repository; files load through the GitHub API, and your edits sit in browser storage until you commit.

  1. Sign in at github.com and open any repository or pull request.
  2. Option 1: press the . (period) key to open it in github.dev in the same tab, or press > to open it in a new tab.
  3. Option 2: change github.com to github.dev in the address bar and press Enter.
  4. Option 3: go to https://vscode.dev/github/<owner>/<repo>, for example https://vscode.dev/github/microsoft/vscode.
  5. Open files from the Explorer and edit them as in desktop VS Code.
  6. To switch repositories, select the remote indicator at the lower left of the Status bar and choose Open Remote Repository….

The vscode.dev extension for Chrome and Edge adds an address-bar shortcut: type code, then a repository name. It sits alongside the others in the complete list of Microsoft Edge browser extensions.

Edge address bar showing GitHub repository suggestions after typing vscode
This Chrome and Edge extension turns the address bar into a quick search across GitHub repositories. (Image: code.visualstudio.com)

Create a Full Cloud Development Environment With GitHub Codespaces

A codespace is a Docker dev container on its own virtual machine. It opens in browser VS Code by default and gives you a real terminal.

  1. Open the repository's main page on GitHub.
  2. Select the branch dropdown under the repository name and pick the branch to work on.
  3. Click the Code button, then the Codespaces tab. The note at the bottom shows who will pay for the codespace.
  4. Click the create button to use the default options, or open the menu at the top right and select New with options to choose a machine type or a specific devcontainer.json.
  5. Click Create codespace on the options page. Setup can take a few minutes while the VM is assigned and the repository is cloned.
  6. Explore the interface: Explorer for files, Source Control for Git, the TERMINAL and PORTS tabs at the bottom.

Starting a brand-new project? Open a template such as github/haikus-for-codespaces, click Use this template, then Open in a codespace. The address codespace.new jumps to the create page for any repository.

GitHub Codespaces tab showing Create codespace on main button
The note below the button names who pays for compute before you create the codespace. (Image: docs.github.com)

Build and Run a Simple App in Codespaces

The default codespace image already includes Node.js, Python, Java, Go, PHP, Ruby, C++ and .NET, so this small Node server runs with no installs.

  1. In the Explorer, create server.js containing: const http = require('http'); http.createServer((req, res) => res.end('Hello from Codespaces')).listen(3000, () => console.log('Listening on http://localhost:3000'));
  2. Create package.json containing: { "name": "hello-codespace", "scripts": { "start": "node server.js" } }
  3. Open the TERMINAL tab and run npm start.
  4. When the terminal prints the localhost URL, the port is forwarded automatically. Click Open in Browser in the pop-up.
  5. Edit the message in server.js, stop the server with Ctrl + C, run npm start again and refresh the app tab.
  6. If you closed the app tab, open the PORTS tab, hover over the Local Address for port 3000 and click the Open in Browser icon.

Save Your Work With Git

In github.dev, uncommitted edits live only in browser storage. In a codespace, saved files persist while the codespace exists, but they reach GitHub only when you push.

  1. Click the Source Control view in the Activity Bar.
  2. Click + next to a changed file, or next to Changes to stage everything.
  3. Type a commit message in the text box.
  4. In github.dev, click Commit & Push. In a codespace, click Commit, then Sync Changes or Publish Branch.
  5. For a codespace made from a template, pick Publish to GitHub private repository or Publish to GitHub public repository when asked.
  6. To start a branch, click the branch name in the Status bar, type a new name and select Create new branch. Uncommitted changes carry over.
  7. Open a pull request with the pull request icon at the top of the Source Control side bar.

Prefer typing? The codespace terminal accepts ordinary commands such as git add ., git commit -m "message" and git push. If you only have read access to a repository, a commit in a codespace creates a fork for you automatically.

VS Code Source Control panel with commit message typed and Commit button highlighted
Type a commit message in this box, then click Commit before syncing or publishing the branch. (Image: docs.github.com)

Customize Your Cloud Environment With a Dev Container

A dev container configuration in .devcontainer/devcontainer.json tells Codespaces which image, tools, extensions and ports every new codespace gets. You need write access to the repository to add one.

  1. Inside the codespace, press Ctrl + Shift + P (Shift + Command + P on a Mac) and type add dev.
  2. Select Codespaces: Add Dev Container Configuration Files.
  3. Click Create a new configuration, then Show All Definitions.
  4. Choose a predefined definition, such as Node.js or Python, and answer the prompts.
  5. Click OK, then Rebuild now in the pop-up at the bottom right.
  6. Commit and push the .devcontainer folder so every future codespace uses the same setup.

To use your own image, point the build.dockerfile property at a Dockerfile in the same folder, or set the image property directly. Keep personal themes out of devcontainer.json; use Settings Sync or dotfiles for those. If a config change breaks the container, the codespace starts in recovery mode until you fix and rebuild it.

Add Dev Container Configuration Files menu with Show All Definitions option
Select Show All Definitions to see every predefined template, such as Node.js or Python, in one list. (Image: docs.github.com)

Connect Browser Coding to Azure DevOps

Azure DevOps is the direct descendant of the first Visual Studio Online, and vscode.dev opens its Git repositories without any install.

  1. Sign in to Azure DevOps and open a repository or pull request in Repos.
  2. Press the . (period) key to open it in VS Code for the Web.
  3. Or add vscode.dev/ in front of the Azure Repos URL. Any repository, branch or tag works this way.
  4. Or type https://vscode.dev/azurerepos/<organization>/<project>/<repo> directly.
  5. Edit files, then commit from the Source Control view. You can also fetch, pull, sync and view branches.

Azure Repos is free for up to five users with basic features and hosts unlimited private Git repositories.

Use Visual Studio Code Desktop With the Same Cloud Environment

The same codespace opens in desktop VS Code, which lifts browser keyboard-shortcut conflicts while the code still runs in the cloud.

  1. Install VS Code 1.51 or later on your computer, then install the GitHub Codespaces extension from the Extensions view.
  2. Click the Remote Explorer icon in the Activity Bar and pick GitHub Codespaces from the dropdown.
  3. Click Sign in to GitHub and then Authorize when prompted.
  4. Or go to https://github.com/codespaces, click the … next to a codespace, select Open in and choose Visual Studio Code.
  5. To make desktop the default, change the default editor in your GitHub Settings > Codespaces page.
  6. From vscode.dev or github.dev, run Continue Working On… from the Command Palette to clone locally, reopen on desktop or create a codespace.

Work Safely: Security, Privacy, and Permissions

Area What happens What to do
vscode.dev and github.dev Code runs in the browser sandbox and repositories are read through APIs, not cloned Safe for exploring unfamiliar repositories
Local folders The browser asks before granting access through its file system API Grant access only to the project folder
Codespace isolation Each codespace gets its own VM and network; inbound internet traffic is blocked Open only repositories you trust
GitHub token A new token with an expiry is issued on each start, scoped to your repository access Stop codespaces you are not using
Forwarded ports Private by default; Public ports need no sign-in Make a port Public only for a short demo
Passwords and API keys Development environment secrets appear as environment variables Store keys as secrets, never in committed files

Understand Pricing and Limits

vscode.dev and github.dev are free. GitHub Codespaces bills compute while a codespace runs and storage while it exists.

Item Free personal account GitHub Pro Paid rate after quota
Compute per month 120 included hours 180 included hours $0.18 per hour on 2 cores, up to $2.88 on 32 cores
How hours are counted Multiplied by core count (2-core uses 2 per hour) Same Same
Storage per month 15 GB-month 20 GB-month $0.07 per GB-month
Idle timeout 30 minutes by default, adjustable from 5 to 240 Same Running time is billed until timeout
When quota runs out Usage is blocked without a payment method Same Alerts at 90% and 100% of included usage

Organization plans include no free Codespaces quota. Closing the browser tab does not stop a codespace; stop it from the Codespaces page to end compute charges.

How to check it worked

  1. In vscode.dev, check the Language Status indicator in the Status bar to see the support level for the open file.
  2. In github.dev, open the repository on github.com after Commit & Push and confirm your commit appears in the history.
  3. In a codespace, confirm the PORTS tab lists port 3000 and the app tab shows your message.
  4. Visit https://github.com/codespaces and confirm the codespace, its machine type and its status are listed.
  5. After a dev container rebuild, confirm the codespace did not open in recovery mode.

Common Problems and Quick Fixes

Open Folder does nothing, or only single files open

Only Edge and Chrome support the File System API that folder access needs.

  1. Switch to the latest Edge or Chrome.
  2. Or open individual files instead of a folder.

Keyboard shortcuts open browser features instead of VS Code

The browser reserves some keys.

  1. Press F1 instead of Ctrl + Shift + P in Firefox.
  2. Use Ctrl + Alt + N for a new file, because Ctrl + N opens a browser window.
  3. Move to VS Code desktop for the full shortcut set.

No terminal, or code will not run, in vscode.dev

VS Code for the Web has no compute, terminal or debugger.

  1. Run Continue Working On… from the Command Palette.
  2. Choose a GitHub codespace or your desktop to get a terminal.

An extension will not install in the browser

Only web extensions run in the browser sandbox.

  1. Click Learn Why next to the warning icon in the Extensions view.
  2. Open the project in a codespace, which runs most Marketplace extensions.

The codespace does not open after creation

Creation may have succeeded but failed to report back.

  1. Reload the page.
  2. Check https://github.com/codespaces and open the codespace from there.
  3. Retry creation to rule out a transient failure.

Codespace creation fails or the Codespaces tab is missing

A cloud incident, a build over one hour, organization policy or an exhausted quota.

  1. Check the GitHub Status page for incidents.
  2. Delete the failed codespace and create a new one.
  3. Click View logs on the setup page and remove any script that waits for input.
  4. For organization repositories, ask an owner whether Codespaces is enabled for you.
  5. If your quota is used, add a payment method or wait for the monthly reset.
Dialog warning that the Python extension has limited functionality in the browser
Only web-compatible extensions run in the browser sandbox; open a codespace to install the rest. (Image: code.visualstudio.com)

Best Uses for Browser-Based Microsoft Development

Task Best tool Reason
Learning HTML and CSS in a classroom vscode.dev or vscode.dev/edu No install on shared or locked-down PCs
Reviewing a pull request github.dev or vscode.dev on Azure Repos Press . and read the full diff in an editor
Editing docs or config files github.dev Commit and push in one click
Onboarding a new developer Codespaces with a dev container Tools are ready when the codespace opens
Coding on a Chromebook or iPad vscode.dev or Codespaces Both run on tablets and low-power devices
Heavy builds or large test suites Codespaces on a larger machine type Pick 4 to 32 cores from New with options

Tips for a Better Browser Coding Workflow

Tip How
Keep settings everywhere Turn on Settings Sync so themes and extensions follow you across browsers, codespaces and desktop
Resume fast Press , (comma) on a repository's Code tab to reopen your last codespace for that branch
Bookmark a codespace Use https://CODESPACE-NAME.github.dev to open it straight in the browser
Cut idle charges Lower the timeout under Settings > Codespaces > Default idle timeout
Allow pop-ups Grant vscode.dev pop-up and clipboard permission in the browser's site permissions
Try a theme first Open https://vscode.dev/editor/theme/<extensionId> to preview it without installing

Quick Comparison: vscode.dev, github.dev, and Codespaces

Feature vscode.dev github.dev GitHub Codespaces
Cost Free Free Free monthly quota, then per hour
Start time Instant Instant A few minutes on first creation
Terminal and debugger No No Yes
Run a web server No No Yes, with port forwarding
Extensions Web extensions only Web extensions only Most Marketplace extensions
Local files Yes, in Edge or Chrome No No
Repositories GitHub and Azure Repos GitHub GitHub

Getting Started Checklist

Step Done when
Pick a tool from the decision table You know whether you need a terminal
Update Edge, Chrome, Firefox or Safari The browser is on its latest version
Sign in to GitHub or Azure DevOps Repositories open with the . key
Create your first file or codespace The editor shows your project in Explorer
Commit and push once The commit appears on the repository page
Set the idle timeout and stop unused codespaces Nothing on github.com/codespaces shows as running

Frequently Asked Questions

Is Visual Studio Online still available?

No. The browser environment called Visual Studio Online was renamed Visual Studio Codespaces in April 2020 and retired on February 17, 2021. Its replacement is GitHub Codespaces, and the free vscode.dev and github.dev editors cover lightweight browser editing.

How do I start coding in HTML in the browser?

Go to vscode.dev, press F1, run File: New File and save it as index.html. HTML and CSS get near-desktop editing there. Double-click the saved file on your computer to see the page render in your browser.

How do I open HTML code in a browser?

Save the code as a file ending in .html, then double-click it or drag it into a browser window. For a page served from a codespace, run your server and click Open in Browser when the port is forwarded.

How do I open code in the browser from GitHub?

Press the period key on any GitHub repository or pull request, or change github.com to github.dev in the address bar. The code opens in VS Code for the Web, free, while you are signed in to GitHub.

How can I see a project's code in the browser without downloading it?

Open https://vscode.dev/github/owner/repo with the real owner and repository names. The editor reads files through the GitHub API instead of cloning, so nothing is downloaded to your computer.

How do I start coding on a computer without installing anything?

Open vscode.dev in a current browser. It needs no install and no account for local files. When you need to run code, create a GitHub codespace, which adds a Linux machine with a terminal in the same browser tab.

Where should beginners start coding?

Start with HTML, CSS and JavaScript in vscode.dev, because they need nothing but a browser. Microsoft's VS Code for Education landing page lives at vscode.dev/edu. Move to a codespace once you need Python scripts or a server.

How do I start to learn coding online for free?

Use vscode.dev or github.dev, which are both free, or the monthly GitHub Codespaces quota included with free personal accounts. That quota covers 120 included compute hours and 15 GB-month of storage each month.

Can vscode.dev run Python or Node.js code?

No. vscode.dev has no runtime, terminal or debugger, so it edits code but cannot execute it. Use Continue Working On to move the project into a GitHub codespace or desktop VS Code to run it.

Conclusion

Use vscode.dev for quick edits and learning, and create a GitHub codespace the moment you need a terminal. Visual Studio Online no longer exists. vscode.dev and github.dev are free and instant but cannot run code, while Codespaces runs real apps within a free monthly quota.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *