Does VS Code support server-side code in ASPX files?

Viewed 11653

When I open an ASPX (ASP.NET Web Forms) file with embedded server-side code in Visual Studio Code, I am getting a lot of error highlights.

Here is a very minimal example: ASPX in VSCode

Is there an extension I should have installed (I did install the C# extension) or is this an unsupported scenario? Or am I just really messing up here?

3 Answers

There is now an extension in the Marketplace called HTML (C#) which is a port from a Sublime plugin. I found it by searching for aspx in the Extensions sidebar. Picture of Marketplace Extension Search

Here's the link to the Github repo if that suits you better: https://github.com/fireside21/vscode-cshtml

Once that was loaded up I had no more errors from the incorrect assumption that I was editing a .js file.

Related