Skip to content

create-vite: add scaffolding to support vscode extensions #8981

@BurtHarris

Description

@BurtHarris

Description

As a developer starting to use Vite, I would like to have create-vite take advantage of the fact two vscode add-ins have been written that can speed and simplify development.

Suggested solution

This is easy. Templates should simply generate a JSON file .vscode/extensions.json with content like:

{
    "recommendations": [
        "antfu.vite",
        "antfu.browse-lite"
    ]
}

From there, vscode does the rest, asking if the developer wants to use recommended extensions to the IDE.

Alternative

Is there some sort of template inheritence mechanism so this doesn't need to go in each template?

Additional context

I note that the template-svelte & template-svelte-ts both already include a, vscode/extensions.json file, but it includes for a different, svelte-specific extension.

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions