astro-vscode

Language support for Astro
18,973 63,402
Install
npm install astro-vscode
Latest Version:2.17.2
License:MIT
Last Updated:Oct 22, 2026
Links: GitHub  ·  npm
Maintainer: fredkschott

Astro support for Visual Studio Code

🧑‍🚀 Not sure what Astro is? See our website at astro.build!

Provides language support for .astro files. This extension is powered by the Astro language server.

Features

A TypeScript plugin adding support for importing and exporting Astro components inside JavaScript and TypeScript files is also included.

Configuration

HTML and CSS settings can be configured through the html and css setting prefixes. TypeScript-related settings appear in the VS Code Settings UI under the JavaScript and TypeScript (js/ts) category in recent VS Code versions, but the actual JSON keys use the typescript.* namespace (for example, "typescript.preferences.importModuleSpecifier": "non-relative"). For example, HTML documentation on hover can be disabled using "html.hover.documentation": false. Formatting can be configured through Prettier's different configuration methods.

Troubleshooting

Inlay Hints don't work

Currently, only inlay hints provided by TypeScript are supported. TypeScript inlay hints are disabled by default and needs to be enabled using the settings under the typescript.inlayHints namespace, for example, to enable inlay hints for parameter names, you would do the following:

{
  "typescript.inlayHints.parameterNames.enabled": "all"
}

Alternatively, in the GUI this would be in TypeScript > Inlay Hints > Parameter Names. Make sure to update the TypeScript settings and not the JavaScript ones, as Astro is TypeScript-only

See this page for more information on the different settings available for inlay hints

Related Packages

scrolly-video

A component for scroll-based (or other externally controlled) playback.

57,486 1,095
gooey-toast

A framework-agnostic, physics-inspired toast notification library.

5,804 3
@nativescript-community/geocoding

Provides access to native geocoding APIs for NativeScript apps (android.location...

2,162 8
@abbieben/rich-text

This is the description for the plugin seed. This is what will be published to N...

1,535 0
@abbieben/webview-interface

This is the description for the plugin seed. This is what will be published to N...

1,515

Version History

Version Released License
2.17.2 MIT
2.17.1 MIT
2.17.0 MIT
2.16.20 MIT
2.16.19 MIT
Pre-releases (14)
Version Released License
2.16.9-beta.0 MIT
2.0.0-next.12 MIT
2.0.0-next.11 MIT
2.0.0-next.10 MIT
2.0.0-next.9 MIT