Skip to content

jasonlyu123/SvelteVisualStudio

Repository files navigation

Svelte for Visual Studio

This extension is a language server client for Visual Studio 2019 and Visual Studio 2022. Power by Svelte Language Server with language server protocol.

Visual Studio 2022 fixes a lot of bugs related to LSP. Thus it's recommended to use the VS2022 version.

Configuration

Create a VSWorkspaceSettings.json in the .vs folder in the folder you want the config to apply to. Complete list see Svelte Language Server Note that not all feature is supported in Visual Studio.

// /.vs/VSWorkspaceSettings.json
{
    "svelte.plugin.css.hover.enable": true,
    "typescript.preferences.quoteStyle": "single"
}

Known feature doesn't work on Visual Studio but on VSCode

See #6