Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CSS px to remNew to Visual Studio Code? Get it now.
CSS px to rem

CSS px to rem

reizt

|
496 installs
| (0) | Free
Just convert px to rem
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode px to rem

This is a VSCode extension that just converts px in CSS to rem.

You can also format on save.

The values you can set in the settings.json are down below.

  • px-to-rem.pxPerRem: number

    the px -> rem conversion rate.

    Example: when the value is 10, 10px will be replaced with 1rem.

  • px-to-rem.formatOnSave: boolean

    When true, all the px parts in the active file will be replaced to rem soon after your save the file.

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