Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>cn-wrapperNew to Visual Studio Code? Get it now.
cn-wrapper

cn-wrapper

oheim-cn-wrapper-publisher

|
11 installs
| (0) | Free
Wrap React className string with cn call
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cn-wrapper README

Utility to wrap React className string with cn call, or add className attribute with it, if none is found.

example

Can customize cn prefix to clsx or whatever.

Features

Cmd/Ctrl + Shift + P -> cn-wrapper:Wrap/insert cn

Extension Settings

This extension contributes the following settings:

  • cnWrapper.prefix: cn prefix, usually cn or clsx
  • cnWrapper.insertOnNoClassNameAttribute: if to insert the className attribute if none is found

Release Notes

1.0.0

Add quickfix action

0.0.3

Add icon

0.0.2

Typos

0.0.1

Initial release


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