Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>jsx-css extractNew to Visual Studio Code? Get it now.
jsx-css extract

jsx-css extract

jeiea

|
1,417 installs
| (0) | Free
extract css template literal
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

jsx-css-extract

It provides the following 'extract css` code action.

import React from 'react';
import { css } from '@emotion/core';

function PreciousComponent() {
  return (
    <div
      css={css\`
        display: none;
      \`}
    >
      asdf
    </div>
  );
}`;

After applying code action with moving cursor on css tagged literal.

import React from 'react';
import { css } from '@emotion/core';

const styles = {
  div: css`
    display: none;
  `
}

function PreciousComponent() {
  return (
    <div css={styles.div}>
      asdf
    </div>
  );
}`;

That's all.

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