Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CSS-in-JS FoldNew to Visual Studio Code? Get it now.
CSS-in-JS Fold

CSS-in-JS Fold

Paul Shen

|
1,330 installs
| (0) | Free
Quickly fold and unfold CSS-in-JS blocks
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode CSS-in-JS Fold

This is a VSCode extension that adds commands to fold and unfold all CSS-in-JS blocks. This can be useful when working with libraries like styled-components and Emotion.

Example recording

Installation

Get the extension on the Marketplace.

https://marketplace.visualstudio.com/items?itemName=paulshen.css-in-js-fold

If you find the commands useful, I recommend adding keybinds. Here are the ones I use.

{
  "command": "css-in-js-fold.foldAll",
  "key": "cmd+k cmd+a",
  "when": "editorTextFocus"
},
{
  "command": "css-in-js-fold.unfoldAll",
  "key": "cmd+k cmd+z",
  "when": "editorTextFocus"
}

Notes

The implementation uses a naive regex to find CSS-in-JS blocks.

Release Notes

1.0.0

Initial release of extension

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