Skip to content

Visual Studio Code Extension - SCSS support for HTML documents

License

Notifications You must be signed in to change notification settings

P-de-Jong/vscode-html-scss

 
 

Repository files navigation

Visual Studio Code SCSS Support for HTML Documents

Missing SCSS support for HTML documents. This project is a fork of the HTML CSS Support extension by ecmel but it uses the SCSSLanguageService instead of CSS.

Features

  • Class attribute completion.
  • Id attribute completion.
  • Supports @import.
  • Scans workspace folder for scss files.
  • Supports Angular projects by looking for component scss files relative to the opened component html file.
  • Press F12 to go to definition(s).
  • Uses vscode-css-languageservice.

Supported Languages

  • html
  • typescript inline template (e.g. Angular Components)
  • laravel-blade
  • razor
  • vue

example

Go To Definition(s)

Press F12 to go to definition(s) of a scss class.

example

Workspace settings

Extension settings can be set in the workspace settings.

  • htmlScss.globalStyles: Array of filepaths. When this setting is not present all scss files in the workspace will be used. When the array is empty, no files will be used.
  • htmlScss.isAngularProject: Set to true if you want the extension to look for scss files relative to a opened component html file.

Example

example

About

Visual Studio Code Extension - SCSS support for HTML documents

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 90.6%
  • HTML 4.3%
  • C# 2.1%
  • CSS 1.7%
  • Vue 1.3%