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

Convert px to rem

gwanduke

|
3,600 installs
| (0) | Free
Convert px to rem dead simple.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

⚡️ vscode-convert-px-to-rem

Published: VisualStudio Marketplace - Convert px to rem

Converts unit "px" to "rem" for the selected area in the document.

How to use

  1. Select an area to convert within code
  2. Press shift + cmd + p
  3. Type > convert px to rem of selections

CSS

How to use - CSS

JavaScript

How to use - JavaScript

Settings

  1. Press shift + cmd + p
  2. Type > Preferences: Open Settings
  3. And you can use these options.
{
  "convert-px-to-rem.base-px": 16, // set px per 1rem
  "convert-px-to-rem.precision": 4 // floating point precision
}

Todo

  • [ ] Shortcut
  • [ ] Displaying unit before conversion.

Extension Settings

  • convert-px-to-rem.basePx: Specify the default px units used in your project.

Release Notes

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