Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Inline fold (new)New to Visual Studio Code? Get it now.
Inline fold (new)

Inline fold (new)

ctf0

|
1,907 installs
| (1) | Free
A custom decorator that "fold" matching content in single line
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Inline Fold

preview

based on https://github.com/moalamri/vscode-inline-fold + changes

Settings

{
  "inlineFold.regex": "(class|className)=[`'{\"](https://github.com/ctf0/vscode-inline-fold/blob/HEAD/[^`'\"}]{30,})[`'\"}]",
  "inlineFold.regexFlags": "g",
  "inlineFold.regexGroup": 2,
  "inlineFold.unfoldedOpacity": 0.6,
  "inlineFold.maskChar": "…",
  "inlineFold.maskCss": "color:#000;",
  "inlineFold.supportedLanguages": ["javascriptreact", "typescriptreact"],
  "inlineFold.unfoldOnLineSelect": true,
  "inlineFold.autoFoldOnOpen": true
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft