Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSC Variable HelperNew to Visual Studio Code? Get it now.
VSC Variable Helper

VSC Variable Helper

Florian Riviere

|
5 installs
| (0) | Free
Displays CSS properties with potential issues: hardcoded values, fallbacks, and undefined variables.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSC Variable Helper

A non-intrusive Visual Studio Code extension to inspect and validate the use of CSS custom properties in your stylesheets.


✨ Features

  • Detects hardcoded CSS values (px, rem, %, #fff, rgba(...), etc.)
  • Warns when using hardcoded fallbacks in var(--x, fallback)
  • Alerts when a CSS variable is used but not defined
  • Works with .css, .scss and .vue files
  • Lightweight and non-disruptive: results are shown in a side panel (Tree View)

📸 Example

/* ✅ No issues: variable is defined and no fallback */
color: var(--text-color); // OK if --text-color is defined

/* ⚠️ Warning: hardcoded fallback in var() */
padding: var(--space-small, 10px); // Warning: fallback "10px" is hardcoded, if --space-small is defined

/* ❌ Alert: variable is not defined */
background: var(--missing-var); // Alert: --missing-var is not defined

/* ⚠️ Warning: hardcoded value */
border: 1px solid var(--color-border); // Warning: "1px" is hardcoded, if --color-border is defined
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft