Skip to content

VSCode extension converting between CSS and React inline style syntax

License

Notifications You must be signed in to change notification settings

gottfired/css2react

Repository files navigation

css2react README

Features

Convert the current selection between CSS and React's inline style syntax.

See It in Action

how-it-works

Usage

Select the lines you want to convert and press Cmd+Option+c on Mac (Ctrl+Alt+c on Windows). Conversion works both ways, CSS to React inline and back.

Customization

You want to use a different shortcut? No problem. Remap it by putting this into your keybindings.json

{
    "key": "ctrl+alt+y",
    "command": "extension.css2react",
    "when": "editorTextFocus"
}

Known Issues

Converted code might need some editing but should be a good start.

Enjoy!

About

VSCode extension converting between CSS and React inline style syntax

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published