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

pxtoremjack

Jack Lin

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

pxtorem

vscode插件将css文件的px转为rem

使用

ctrl+shift+p 后输入pxtorem

规则

按照postcss-pxtorem,暂不支持自定义

{
    rootValue: 10,
    unitPrecision: 5,
    propList: ['font', 'font-size', 'line-height', 'letter-spacing', 'padding', 'margin'],
	selectorBlackList: [],
	replace: true,
	mediaQuery: false,
	minPixelValue: 0,
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft