Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>pxtoremNew to Visual Studio Code? Get it now.
pxtorem

pxtorem

ruanjq

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

cssrem

A px to rem plugin in VSCode

中文版

Install

ext install cssrem

How To Use

  • Auto snippet
  • CLI: Press F1, enter cssrem

Support Language

html vue css less scss sass stylus tsx js tpl(php smarty3)

Configuration

Open your user and workspace settings (File > Preferences > Settings):

Name Description Default
cssrem.rootFontSize root font-size (Unit: px) 16
cssrem.fixedDigits px to rem decimal point maximum length 6
cssrem.autoRemovePrefixZero Automatically remove prefix 0 true
cssrem.ingoresViaCommand Ignores px to rem when trigger command (Unit: string[]), can be set [ "1px", "0.5px" ] []

NOTE: Muse be restart vscode after modification

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