Skip to content
This repository has been archived by the owner on Jan 8, 2023. It is now read-only.

VSCode syntax highlighting, code completion, and error checking in Vue SFCs with Postcss

Notifications You must be signed in to change notification settings

samatechtw/vscode-postcss-vue

Repository files navigation

postcss-vue

Update Jan. 8, 2023

⚠️ This plugin is deprecated ⚠️

Volar works well with cpylua.language-postcss, unless it breaks in the future this plugin will not be maintained or improved.

Overview

Syntax highlighting, code completion, and error checking in Vue SFCs with Postcss.

⚠️ This extension is experimental, immature, and not recommended for use

Features

Core

  • Vue Single File Component (SFC) PostCSS syntax highlighting
    • Basic CSS highlighting
    • Variables, at-rules (mixins, if, function, etc)
    • Testing
    • Module support
  • SFC PostCSS error checking/lint
  • SFC PostCSS code completion (including variables in modules)

Nice to have

  • Support core features in standalone files
    • Basic CSS highlighting
    • Variables, at-rules (mixins, if, function, etc)
    • Testing
    • Module support
  • Show variable values on hover/jump on cmd click

Requirements

This extension is built and tested using the latest @vue/compiler-sfc package, in with Vue3 projects that use only PostCSS in <style> blocks. Other use cases are not supported, but feel free to open an issue/PR.

Extension Settings

  • postcssVue.enable: enable/disable this extension

Notes

Publish doesn't work at the moment with PNPM: microsoft/vscode-vsce#421

Use the following procedure as a temporary workaround (this example creates a local package):

rm -rf node_modules
npm i
npx vsce package

About

VSCode syntax highlighting, code completion, and error checking in Vue SFCs with Postcss

Resources

Stars

Watchers

Forks

Packages

No packages published