/px-to-vw

This is an extension for Visual Studio Code that allows you to convert px to viewport, and viewport to px.

Primary LanguageJavaScript

px-to-vw

This is an extension for Visual Studio Code that allows you to convert px to viewport, and viewport to px.

Usage

The use of this extension is very simple:

  1. Install it.

  2. Select the parts that need to be converted.

  3. Press "Alt + Z" (Mac press "option + Z").

For example :

Extension Settings

This extension contributes the following settings:

  • px-to-vw.viewportWidth: number of viewportWidth. Default is 750px.
  • px-to-vw.unitPrecision: maximum number of decimals digits a px or vw can have. Default is 3.

github

https://github.com/usecodelee/px-to-vw


Enjoy!