Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.04 KB

File metadata and controls

31 lines (23 loc) · 1.04 KB
title Experimental Intellisense for content collections
sidebar
label
Intellisense for collections
i18nReady true

import Since from '~/components/Since.astro'

Type: boolean
Default: false

Enables Intellisense features (e.g. code completion, quick hints) for your content collection entries in compatible editors.

When enabled, this feature will generate and add JSON schemas to the .astro directory in your project. These files can be used by the Astro language server to provide Intellisense inside content files (.md, .mdx, .mdoc).

import { defineConfig } from 'astro/config';

export default defineConfig({
  experimental: {
    contentIntellisense: true,
  },
});

To use this feature with the Astro VS Code extension, you must also enable the astro.content-intellisense option in your VS Code settings. For editors using the Astro language server directly, pass the contentIntellisense: true initialization parameter to enable this feature.