Skip to content

wevisdemo/wevis-intellisense

Repository files navigation

WeVis IntelliSense

MIT License Visual Studio Marketplace Version Visual Studio Marketplace Last Updated

VSCode IntelliSense for WeVis Design System.

To install the extension, use the keyword WeVis in your extension sidebar. Alternatively, you can download it from Visual Studio Code Marketplace.

Features

Suggestion

Suggest available CSS classes from the design system in several files format such as HTML (.html), Vue (.vue), React (.js, .jsx, .tsx), Svelte (.svelte), Astro (.astro). It works on the pattern class[Name]=[{]<"|'|`>; if the pattern matched, it will try to suggest you.

Suggestion for class attribute

This extension also works with Emmet, so you can type . and it will start suggesting you. This is enabled by default, but you can disable this functionality in the settings.

Suggestion in Emmet

To provide a clear indication whether the extension is available for a file, A small "WV" will appear at the status bar when available. You can click on it to quickly enable/disable the suggestion functionality. When disabled, it will be in warning color (typically dark yellow).

Extension availability shown in the status bar

The extension shipped with several commands, which you can use them via the command palette (Ctrl/Cmd + Shift + P).

Open extension settings using the command palette

Snippets

You can insert a snippet for components and component sets through prefix wv-.

Snippets suggestion on typing 'wv-'

For upcoming features and plan, please see Planned Features.

Extension Settings

There are 3 settings available in this extension:

  • wevisIntellisense.enableIntellisense
    • Enable IntelliSense in available file.
    • Default: true
  • wevisIntellisense.allowEmmet
    • Allow suggestion with Emmet abbreviation.
    • Default: true
  • wevisIntellisense.suggestionLanguages
    • A list of languages where suggestions are enabled.
    • Default: ["html", "vue", "vue-html", "svelte", "astro", "javascript", "javascriptreact", "typescriptreact"]

Planned Features

  • Suggestion
  • Snippets
    • Component Snippets
    • Cookbook Snippets
  • Component Generator

Changelogs

Updates and changelogs can be found in the changelog file.