This is an extension for Visual Studio Code that allows you to convert px to viewport, and viewport to px.
The use of this extension is very simple:
Select the parts that need to be converted.
Press "Alt + Z" (Mac press "option + Z").
For example :
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.