Skip to content

lzp0301/px2vw

Repository files navigation

px2vw

  • 一个px值转vw的VSCode插件

  • an VSCode extension convert 'px' to 'vw'

  • Author: Loong zupeng

  • Email: lzp0301@126.com

How to package with source code

  • 1.npm install vsce -g
  • 2.npm install
  • 3.vsce package
  • 4.Done! Check your project directory

Install

ext install px2vw

How to use

  • Auto snippet
  • Shortcuts: ctrl+p ctrl+r
  • CLI: Press F1, enter px2vw

Use directly

  • Install 'px2vw-0.0.1.vsix' from VSCode Extensions

Support language

html vue css less scss sass stylus

Configuration

  • px2vw.baseWidth Base viewport width, default: 16
  • px2vw.fixedDigits Length of digits,default: 6
  • px2vw.autoRemovePrefixZero Auto remove prefix, default: true

Restart VSCode [!Important]

About

An extension for VSCode converting px to vw

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published