px-to-vw
px-to-vw copied to clipboard
This is an extension for Visual Studio Code that allows you to convert px to viewport, and viewport to px.
trafficstars
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:
-
Install it.
-
Select the parts that need to be converted.
-
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!