css2inlinestyle is a simple extension to convert CSS code to React inline style.
- Convert css to inline style.
- Remove prefixes
- If find duplicate rules, check their values. If the values are similar, just keep one of them. If their values are differents, keep the duplicate values and display a warning message.
- Select your CSS code
- Execute the command "Convert CSS to inline style"
- Enjoy !
- Select your inline style code
- Execute the command "Convert inline style to CSS"
- Enjoy !
Tip: To bind a keyboard shortcut to the command, open the keybinding preferences and look for "css2inlinestyle" and "inlinestyle2css"
You will find the code on my github repository. Do not hesitate to contribute !
Add gif in readme to be more explicit.
Can now convert inline style to CSS code.
Fix a bug: prefixes were not removed if the rule was not on the first line of the selection
Enhance README.md
Initial release of css2inlinestyle