Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>aspnet-beautifyNew to Visual Studio Code? Get it now.
aspnet-beautify

aspnet-beautify

yanpp22

|
6,641 installs
| (1) | Free
aspnet-beautify
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LSP Example for Embedded Language using Language Service

Heavily documented sample code for https://code.visualstudio.com/api/language-extensions/embedded-languages#language-services

Functionality

This extension contributes a new language, aspx. The new language is for illustration purpose and has basic syntax highlighting.

This Language Server works for aspx file. HTML1 is like HTML file but has file extension .aspx. You can create a test.aspx file to play with below functionaltiies:

  • Completions for HTML tags
  • Completions for CSS in <style> tag
  • Diagnostics for CSS

Running the Sample

  • Run npm install in this folder. This installs all necessary npm modules in both the client and server folder
  • Open VS Code on this folder.
  • Press Ctrl+Shift+B to compile the client and server.
  • Switch to the Debug viewlet.
  • Select Launch Client from the drop down.
  • Run the launch config.
  • If you want to debug the server as well use the launch configuration Attach to Server
  • In the [Extension Development Host] instance of VSCode, open a HTML document
    • Type <d| to try HTML completion
    • Type <style>.foo { c| }</style> to try CSS completino
    • Have <style>.foo { }</style> to see CSS Diagnostics
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft