Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>colorVariableNew to Visual Studio Code? Get it now.
colorVariable

colorVariable

小丸子

|
77 installs
| (0) | Free
Convert color values to variable
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

colorvariable README

用于将颜色值的16进制转换为变量(根据工程中的color.json文件)

使用方法

  • 在工程根目录添加color.json,格式如下
{
    "#fffffff": "@white"
}
  • 对于要替换的颜色值#ffffff,选中或将光标置于#ffffff内,cmd+shift+p,搜索命令covert color,选中即可替换为color.json中对应的变量

![feature X](images/feature-x.png)

Tip: Many popular extensions utilize animations. This is an excellent way to show off your extension! We recommend short, focused animations that are easy to follow.

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