Giter VIP home page Giter VIP logo

vscode-scss's Introduction

vscode-scss

SCSS IntelliSense (Variables, Mixins and Functions) for all files in the workspace.

Disclaimer

This is a preview release that may contain errors. This plugin works fine on my machine (SSD) with 1000+ Bootstrap files (SCSS, 3.3.7).

Please read this README file.

Install

Plugin installation is performed in several stages:

  • Press F1 and select Extensions: Install Extensions.
  • Search and choose vscode-scss.

See the extension installation guide for details.

Usage

Just install the plugin and use it.

Supported features

  • Code Completion Proposals (variables, mixins, functions) — description
  • Hover (variables, mixins, functions) — description
  • Signature Help (mixins, functions) — description
  • Code navigation
    • Go to (variables, mixins, functions) — description
    • Show all All Symbol Definitions in Folder (variables, mixin, functions) — description
  • Visual Studio reference comments: // <reference path="./variable.scss" />.
  • Import files by @import "filepath"; from anywhere. Even outside of the open workspace.

Supported settings

scss.scannerDepth

  • Type: number
  • Default: 30

The maximum number of nested directories to scan.

scss.scannerExclude

  • Type: string[]
  • Default: [".git", "**/node_modules", "**/bower_components"]

List of Glob-patterns for directories that are excluded when scanning.

scss.scanImportedFiles

  • Type: boolean
  • Default: true

Allows scan imported files.

scss.scanImportedFilesDepth

  • Type: number
  • Default: 50

The maximum number of imported files to scan. Prevent an infinite recursion and very deep @import.

scss.implicitlyLabel

  • Type: string|null
  • Default: (implicitly)

The text of a label that the file imported implicitly. If null then label not displayed.

scss.showErrors

  • Type: boolean
  • Default: false

Allows to display errors.

scss.suggestVariables

  • Type: boolean
  • Default: true

Allows prompt Variables.

scss.suggestMixins

  • Type: boolean
  • Default: true

Allows prompt Mixins.

scss.suggestFunctions

  • Type: boolean
  • Default: true

Allows prompt Functions.

scss.suggestFunctionsInStringContextAfterSymbols

  • Type: boolean
  • Default: (+-*%

Allows prompt Functions in String context after specified symbols. For example, if you add the / symbol, then background: url(images/he|) will be suggest hello() function if it is defined.

Questions

I don't see suggestions in the SCSS files.

You must perform several steps:

  • Set scss.showErrors option in settings of Editor.
  • Restart VS Code.
  • Try to reproduce your problem.
  • Open Help -> Toggle Developer Tools and copy errors.
  • Create Issue on GitHub.

Changelog

See the Releases section of our GitHub project for changelogs for each release version.

License

This software is released under the terms of the MIT license.

vscode-scss's People

Contributors

mrmlnc avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.