Microsoft's Visual Studio Code can now run in a web browser

nanoguy

Posts: 1,021   +14
Staff member
In brief: If you've ever wanted to run Visual Studio code in a web browser, now you can. Microsoft has made a zero-installation version of the popular desktop app that can be used as a local development tool, but naturally there are some caveats.

Microsoft has revealed that developers who use Visual Studio Code can now run it in a web browser. In other words, the Redmond company just made it possible for anyone to use its popular lightweight integrated development environment without having to download an installer.

To get started, you have to navigate to vscode.dev in your favorite web browser. If you’re using Google Chrome or Microsoft Edge, you’ll be able to work with local files directly as both browsers support the File System Access API. However, working in other browsers will require you to upload and download code files one by one, so it’s a bit less convenient for now.

As this is a web app, the experience will be somewhat limited compared to the desktop version. This means that while you can view and edit local files, take notes in Markdown, and write client-side apps using HTML, JavaScript, JSON, and CSS, you won’t have access to either a terminal or a debugger and also won’t be able to build or test run apps written in complied languages like C, C++, Rust, and more. You will, however, get things like text-based completions or code syntax and bracket pair colorization.

This shouldn’t be surprising given the limitations of the sandbox environment of a browser tab, but when it comes to web apps, you’ll be able to build them in Visual Studio Code for the Web and also use the browser tools for debugging. If you’re developing using TypeScript, JavaScript, and Python, you’ll be able to leverage single file completions, semantic highlighting, and more.

You’ll also get access to UI customization extensions, snippets, and key maps, and their settings will sync across desktop, web browser, and GitHub Codespaces. Over time, extensions for other purposes such as image editing will become available as their developers update them to work in the web browser.

Visual Studio Code is already a lightweight version of Visual Studio that companies like Facebook have successfully adopted for internal development, so the natural question is — who is this new, even lighter version for? For one, it allows you to edit code on tablets like Apple’s iPad Pro and low powered machines like Chromebooks. It also supports Live Share for the web, which opens up some interesting workflows for education environments.

Permalink to story.

 

Markoni35

Posts: 1,318   +534
Since browsers use JavaScript natively, and Visual Studio Code was written in JavaScript (based on Electron framework, same as Atom), it wasn't as hard as it sounds. I wonder when will someone make a good replacement for Vi and Nano.
 

wiyosaya

Posts: 6,742   +5,189
Having tried to us VS Code, IMO, M$ just released it as a tease to get developers to use VS Pro. From my personal experience, there is so much configuration that needs to be done that it would have wasted probably a day of my time as a professional developer just to get up and running with VS Code. With VS Pro, it is basically install and you're ready-to-go.

I was hoping to get around a limitation of VS Pro in that I wanted to run XSL in debug with something other than M$ default XSL engine which only supports XSL 1.0 instead of 3.0. But, NO, M$ seems to be pushing C# or something else instead - even though, IMO, XSL can be substantially easier to implement and maintain.

IMO, VS Code is a joke.
 

Dimitriid

Posts: 1,334   +2,608
Took a look as I'd like a quicker way to do T-SQL instead of having to just open SSMS but the official (And most of the third party) T-SQL plugins seem to be available only for the client and not the web version.

Still I'll try the exe version for now to see if I like it and if they actually give more plugins support for web based in the near future.

EDIT: I have to agree with @wiyosaya above so far: Even a simple connection to a bog standard, Microsoft SQL server using AD authentication cannot be done without me having to figure out why it just errors out: Microsoft's sh!t doesn't even work with other Microsoft sh!t using Microsoft sh!t to authenticate.
 
Last edited: