Giter Site home page Giter Site logo

px2vw's Introduction

https://img.shields.io/badge/vscode-1.25.0-brightgreen.svg https://img.shields.io/badge/typescript-passing-blue.svg

px2vw

一个 px 单位转成 vw 单位的 VSCode 插件.

演示图

安装

  1. 通过命令行安装

    ext install px2vw
  2. 直接在 vscode 编辑上插件上查找安装 px2vw

  3. 下载 vsix

    打开vscode,拓展,点击三个小点,“从VSIX安装”,即可。成功后重启软件。

使用

  • 自动提示
  • cmd + shift + p 调出命令行全局替换 (mac 快捷键),输入 px2vw

支持语言

  • html
  • vue
  • css
  • less
  • sass
  • scss
  • stylus

配置

根据设计稿宽度设置大小,默认:750,之后就可以直接按设计稿大小编写。

  • px2vw.width 设计宽度
  • px2vw.toFixedNum 保留小数

px2vw's People

Contributors

liurongqing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amirulandalib

px2vw's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.