Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>OBCSS - css/obj property + values converterNew to Visual Studio Code? Get it now.
OBCSS - css/obj property + values converter

OBCSS - css/obj property + values converter

Sam Uherek

|
2,337 installs
| (0) | Free
Quick refactoring from style object values to CSS values and vice versa
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode OBCSS

The extension provides simple command for refactoring CSS values to Style object and vice versa.

As react develoers, we find ourselves in a split world for styling. World of CSS syntax and JS style object syntax. More different projects you work on, the more pain it becomes. Especially if you need to change between the syntax often. This VSCode extension is here to rescue ⛑️.

Installation

Go to the link below and click Install.

Visual Studio Code Market Place: OBSCSS

Commands

Select the block you would like to convert, trigger the palette with cmd + shift + p and search for one of:

  • Convert CSS to object style
  • Convert object style to CSS

And press enter :)

Features

Main features:

  • Convert a CSS block into inline style values
  • Convert an inline style values into CSS block

Convert CSS block to inline styles obj

Example of css to inline style convertion

Convert inline styles obj to CSS block

Example of inline style to css conversion

Planning features:

  • [ ] Add all CSS properties to the css values map.
  • [ ] Copy the converted block into clipboard for a quick paste.
  • [ ] Select an inline HTML tag with inline styles and convert it inot an "Emotion" or "Styled-component".
  • [ ] Select an "Emotion" or "Styled-component" and convert it into an HTML tag with inline styles.

Known Issues - IMPORTANT!

This extension is still in development. It will work correctly only under certain conditions described in the features.


Contribute

Feel free to open issues or PRs!

Getting started

In order to start working all you need to do is:

$ git clone git@github.com:wix/vscode-glean.git
$ cd vscode-glean
$ npm install
$ code .

Running Extension

  • Go to VSCode debug sidebar
  • Select Extension from the dropdown
  • Hit F5

Running Tests

  • Go to VSCode debug sidebar
  • Select Extension Tests from the dropdown
  • Hit F5

Commit messages

WIP...

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft