Autocomplete in your editor

Down here we have a few tips to make it even easier to work with Fylgja in your own favorite editor.

We use VSCode mainly for our own coding, but if you have tips for other editors please share your tips, by creating a pull request on github.com/fylgja/site

CSS Variable Autocompletion (VSCode)

This extension adds autocompletion for CSS variables.

Install the extension phoenisx.cssvar, and configure your editor to allow autocompletion from the node modules folder;

// .vscode/settings.json
{
"cssvar.files": [
"./node_modules/fylgja/fylgja.css",
// Your styles folder
"./src/styles/variables.css"
],
// Do not ignore node_modules css files, which is ignored by default
"cssvar.ignore": []
}

Or use the specific Fylgja component path.

For more config options see the extension docs.

SCSS IntelliSense (VSCode)

This extension adds IntelliSense for SCSS with;

  • Full support for @use and @forward, including aliases, prefixes and hiding.
  • Rich documentation through SassDoc.
  • Suggestions and hover info for built-in Sass modules, when used with @use.

Install the extension somewhatstationery.some-sass, and configure your editor to allow IntelliSense from the node modules folder;

// .vscode/settings.json
{
"somesass.scannerExclude": [".git/**", "./node_modules/**!(@fylgja)"],
// Recommended if you don't rely on @import
"somesass.suggestFromUseOnly": true
}

For more config options see the extension docs.

Noticed a typo or is something unclear? Help us improve this page on GitHub.