Some Sass for Visual Studio CodeSome Sass provides code suggestions, documentation and code navigation for SCSS.
Supports standalone SCSS, as well as style blocks inside Vue, Svelte and Astro components. Recommended settingsSee Recommended settings for some tips on how to tweak code suggestions to your liking. SetupSearch for Some Sass ( Note that if you have SCSS IntelliSense ( UsageCode suggestionsGet suggestions for variables, mixins, functions, and SassDoc as you type. Completions work with and without If you document your mixin using the Try documenting your mixins and functions with SassDoc comment blocks. Information on hoverHover over any Sass variables, mixins or functions to see more details about them. Documentation written with SassDoc will be included in the hover information. Additionally, the extension will provide (~~strikethrough~~) hints when using something marked as Code navigationGo to DefinitionTo use this feature, either:
Go to SymbolTo use this feature – in the Go to ReferencesShows an inline view of all references to the variable, mixin or function designed for quick navigation. To use this feature, either:
Find All ReferencesOpens a pane in your workbench with a list of all references to the variable, mixin or function. To use this feature, right-click a variable, mixin or function and choose
Code actionsRename SymbolRename a variable, function or mixin across the entire workspace. Rright click a symbol and choose Rename Symbol, or hit If you use prefixes with ExtractAvailable when you have an active selection. Pick between extracting to a variable, function or mixin. See the Refactoring chapter of the VS Code documentation to see how to use this feature. Recommended settings for Visual Studio CodeImproved code suggestions for variables under namespaces When providing code suggestions under namespaces ( You may choose to turn off word based suggestions, but know that you don't actually need
to type the dollar sign for the matches to work. Just type the variable name without
Settings for Some SassCode suggestionOnly include suggestions from used modulesIf your project is on the modern module syntax ( With this setting turned on, Some Sass will only suggest variables, mixins and functions from the namespaces that are
in use in the open document. This setting will be turned on by default at some point after
Suggest variables, mixins, and functions from the open documentVisual Studio Code has built-in suggestions for variables, mixins and functions created in the open document. By default Some Sass will not send suggestions for the same symbols. If you prefer the suggestions from Some Sass (for instance if you use SassDoc), you can opt in by turning on this setting. There will unfortunately be duplicates.
Decide when function suggestions should kick inSuggest functions after the specified symbols when in a string context.
For example, if you add the
Workspace scannerExclude files or foldersList of micromatch patterns for directories that are excluded when scanning.
Adjust scanner depthDepending on your project size, you may want to tweak this setting to control how many files are included.
Stop scanner from following links
If you don't want Some Sass to follow
What this extension does not do
ChangelogVisit the release section on GitHub to see what has changed. LicenseBased on SCSS Intellisense by Denis Malinochkin and contributors. Extends the built-in VS Code language server for SCSS. This software is released under the terms of the MIT license. The logo is owned by the Sass project and licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Includes documentation from sass/sass-site (MIT). |