Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>CSS-PercentNew to Visual Studio Code? Get it now.
CSS-Percent

CSS-Percent

morehardy

|
12,050 installs
| (1) | Free
transform px to percent unit(vw, vh)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

css-percent

a vscode snippet plugin for transform px to percent unit(vw , vh)

Features

demo

NOTE: Please set up your extension configuration before you start using it. Configuration takes effect after reloading.

Extension Settings

open your vscode setting, search for CSS-Percent configration

For example:

This extension contributes the following settings:

  • CSSPercent.designWidth: The width of your design, usually by your designer. default is 1920.
  • CSSPercent.designHeight: The height of your design, usually by your designer. default is 1080.
  • CSSPercent.fixedDigits: Retain decimal places. default is 4.

Known Issues

issue

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