Skip to content

Convert some units used in CSS such as px, pt, %, em, hex and rgb.

License

Notifications You must be signed in to change notification settings

DracotMolver/unit-converter

Repository files navigation

UnitConverter

logo Build Status Visual Studio Marketplace Visual Studio Marketplace license:mit Snyk Vulnerabilities for GitHub Repo

Just the rights units

Unit converter will work like this:

  • From: px to em and em to px
  • From: Hex ('#') to rgb | rgba and rgb | rgba to Hex

Important: Don't remove the unit from the text you are selecting on the actived text editor. It's important to know from which unit are you going to convert.

The extension will work too with colors names such as black, white, aquamarine, yellowgreen and so on; converting all of them to their hexadecimal value


How to

  • Setting the value

To use Unit Converter you have to press down F1 and type unit converter. You will get a list of units (px, em, #, rgb, rgba). Then, it will appear an input box where you have to type or set the value to convert. Finally, you will get a promptt with the new value.

Unit Converter

  • Selecting the value(s) from the text editor There are several ways to select and convert one or more values. To make any of this way to work, you must select the unit + value

    • One value Unit Converter

    • Same values (two or more) Unit Converter

    • Differents Values (Two or more) Unit Converter

    • From a range of selected text Unit Converter

Releases

No releases published

Packages

No packages published