adams549659584 / vscode-cssrem

一个CSS值转REM的VSCode插件

Home Page:https://marketplace.visualstudio.com/items?itemName=cipchk.cssrem

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 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

About

一个CSS值转REM的VSCode插件

https://marketplace.visualstudio.com/items?itemName=cipchk.cssrem

License:MIT License


Languages

Language:TypeScript 100.0%