Overview Version History Q & A Rating & Review
Color Commands
Command-based color conversion/manipulation for VS Code .
This extension provides commands to convert colors to their hexadecimal, RGB, and HSL representation. It also allows you to manipulate colors, such as rotating the hue, adjusting saturation, brightness, transparency, etc.
Installation
Open the "Extensions" tab _(or visit _VS Marketplace_ )_.
Search for the "Color Commands" extension.
Click on the "Install" button.
Usage
Select one or more colors in the editor.
Open the "Command Palette" (pressing Ctrl+Shift+P by default) .
Type Color Commands and execute a command from the available options.
Commands
Convert to Hexadecimal - Converts the selected colors to their hexadecimal representation.
Convert to RGB - Converts the selected colors to their RGB representation.
Convert to HSL - Converts the selected colors to their HSL representation.
Set Hue - Sets the hue value of the selected colors.
Set Saturation - Sets the saturation value of the selected colors.
Set Lightness - Sets the lightness value of the selected colors.
Set Alpha - Sets the alpha value of the selected colors.
Rotate Color - Rotates the selected colors by a given number of degrees.
Saturate Color - Increases the saturation value of the selected colors.
Desaturate Color - Decreases the saturation value of the selected colors.
Lighten Color - Increases the lightness value of the selected colors.
Darken Color - Decreases the lightness value of the selected colors.
Invert Color - Inverts the selected colors (rotates the hue by 180 degrees).