Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>px2remNew to Visual Studio Code? Get it now.
px2rem

px2rem

xiaolong

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

What can px2rem do?

  • the instruction for the extension "px2rem". u can use it to transfer px to rem in a css or scss or less file.

  • You can change the conversion ratio according to your needs. You just need to add the following configuration in setting.json. the default value is 100. the unit is px.

    "px2rem.config": {
        "transferRatio": 100 // 1rem = 100px;
    },
  • supported file suffixes: .scss, .css, .vue, .less, .html, .jsx

How to use it?

  • prepare a target suffixes file, and click the right-click, u can see an option named "transfer px 2 rem", click it, then all the "px" unit will be transfer to "rem"

-- transfer px 2 rem --

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