Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>SCSS Navigation and IntellisenseNew to Visual Studio Code? Get it now.
SCSS Navigation and Intellisense

SCSS Navigation and Intellisense

Alexeypt

|
2 installs
| (0) | Free
A comprehensive VS Code extension for enhanced SCSS/Sass development with intelligent navigation, autocomplete, and path mapping support.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

SCSS Navigation

A comprehensive VS Code extension for enhanced SCSS/Sass development with intelligent navigation, autocomplete, and path mapping support.

Features

Navigation

  • Import Navigation - Jump to files from @use and @import statements (F12 or Ctrl+Click)
  • Variable Navigation - Jump to variable declarations ($variable or module.$variable)
  • Mixin Navigation - Jump to mixin definitions (@include mixin or @include module.mixin)
  • Path Mapping - Configure custom path aliases for cleaner imports

IntelliSense

  • Hover Tooltips - View variable values and mixin code on hover
  • Autocomplete - Smart suggestions for:
    • Variables (type $)
    • Mixins (type @include)
    • Functions (type function name)
  • Module Support - Autocomplete understands module namespaces

File Resolution

  • Automatic SCSS partial detection (files starting with _)
  • Multiple file extension support (.scss, .sass, .css)
  • Index file detection (/index.scss, /_index.scss)

Usage

1. Configure Path Mappings

Add to .vscode/settings.json:

{
  "scssNavigation.baseUrl": ".",
  "scssNavigation.pathMappings": {
    "styles/*": "./src/styles/*",
    "components/*": "./src/components/*"
  }
}

2. Use in Your SCSS Files

Import with aliases:

@use 'styles/variables';
@use 'styles/mixins';

Navigate to declarations:

.container {
    // Press F12 on $screen-sm to jump to declaration
    width: variables.$screen-sm;
    
    // Press F12 on flex-center to jump to mixin
    @include mixins.flex-center();
}

Get autocomplete:

  • Type $ to see all available variables
  • Type @include to see all available mixins
  • Hover over symbols to see their values/definitions

Configuration

scssNavigation.pathMappings

Define path aliases for your SCSS imports. Each key is a pattern (use * as wildcard) and value is the target path.

Example:

{
  "scssNavigation.pathMappings": {
    "styles/*": "./src/styles/*",
    "components/*": "./src/components/*",
    "@shared/*": "./shared/styles/*"
  }
}

scssNavigation.baseUrl

Base directory relative to workspace root. Defaults to "." (workspace root).

Path Resolution

The extension resolves imports in the following order:

  1. Path mappings from extension configuration
  2. Relative paths from the current file
  3. SCSS partials (tries with underscore prefix)
  4. Index files (/index.scss, /_index.scss)

Requirements

  • VS Code 1.107.0 or higher

Known Issues

  • Only supports file system paths (no node_modules resolution yet)
  • Requires the workspace to be opened for path mapping resolution

Release Notes

1.0.0

Initial release featuring:

  • Navigation: Go to Definition for imports, variables, and mixins
  • IntelliSense: Autocomplete for variables, mixins, and functions
  • Hover: Display variable values and mixin code
  • Path Mapping: Configurable path aliases via VS Code settings
  • Module Support: Full support for SCSS module system with namespaces
  • File Detection: SCSS partials, index files, multiple extensions

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft