Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>px-to-vwNew to Visual Studio Code? Get it now.
px-to-vw

px-to-vw

朝江

|
34,163 installs
| (3) | Free
px to viewport
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft