All Projects → sunqian1991 → px2rwd-intellij-plugin

sunqian1991 / px2rwd-intellij-plugin

Licence: MIT License
用于将css中的px转换为rem/em/vw/vh值的IntelliJ插件,支持idea和webstorm

Programming Languages

java
68154 projects - #9 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to px2rwd-intellij-plugin

fis-postprocessor-px2rem
fis3 plugins for px2rem when we use rem for mobile flexbox
Stars: ✭ 22 (-75%)
Mutual labels:  px2rem
gulp-px2rem
This is a gulp plugin for node-px2rem.
Stars: ✭ 19 (-78.41%)
Mutual labels:  px2rem
px2vw
🐶 vscode 插件 将 px 转 vw
Stars: ✭ 30 (-65.91%)
Mutual labels:  px2vw
px2rem.scss
Self adaption plugin for mobile development.
Stars: ✭ 18 (-79.55%)
Mutual labels:  px2rem
styled-px2vw
Extension of styled-components with features for convert px to vw units
Stars: ✭ 87 (-1.14%)
Mutual labels:  px2vw
px2rem
convert px to rem in webpack
Stars: ✭ 21 (-76.14%)
Mutual labels:  px2rem
pxtorem-webpack-plugin
A webpack plugin for generating rem for stylesheet and inject auto calculate scripts.
Stars: ✭ 24 (-72.73%)
Mutual labels:  px2rem

PX2RWD-Intellij-Plugin

996.icu

中文

Description

This is a tool of converting px to rem/vw/vh in a css/less file by a few settings used in intellij idea or webstorm.

Install

This plugin has been put in the market and you can find it in file - settings - plugins - marketplace by searching a text of px2rem.

You can also download the plugin file which has been put in release, and install the plugin from disk.

Contact me

If you have any questions or suggestions, please contact me.

QQ: 991637393

email: [email protected]

Usage

there are three ways to convert: short-cut key, code intention, code completion. you can find the settings related to these converting ways in settings page with the path 'File - Settings - Px to Rem'

  1. short-cut key

select a converting type from three options of rem, vw, vh in setting page and give a necessary value set below the radio group, then use the default short-cut key of Alt + d to convert a line or a selected text. you can also use the short-cut key of Ctrl + Alt + d to convert in a whole file. you can only choose one converting type of short-cut key from rem,vw,vg to convert. btw, you can change the short-cut key in your ide by setting the keymap option.

  1. code intention

you can find three code intention types in settings page and you can select if a code intention type works by check the checkbox. by check a code intention in a line of a css file, which will display by typing Alt + Shift, you can convert the line where the caret displays. the unselected code intention types in settings page will not show in the list of code intention in a css file

  1. code completion

you can also find three code completion types in the settings page and you can select if a code completion type works by check the checkbox. by typing 'px' in a css file, you can find some code completion types you set in settings page. choose a type then it will give a result of converting. the unselected code completion types in settings page will not show in the list of code completion in a css file

Instructions:

  1. find menu at 'File - Settings - Px to Rem', and give some settings.
  2. select a text or move cursor at a line which contains a 'px' value.
  3. use default shortcut key Alt + d to convert px to rem/vw/vh with a line; btw, you can change the shortcut at 'File - Settings - keymap - Plug-ins - px2rem'.
  4. use default shortcut key Ctrl + Alt + d to convert px to rem/vw/vh in a whole file.
  5. use a code intention to convert px to rem/vw/vh in a css file
  6. use a code completion to convert px to rem/vw/vh in a css file
  7. use the short-cut key Ctrl + Shift + Alt + d to rollback the converting within one line

image

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].