Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>remove unused styleNew to Visual Studio Code? Get it now.
remove unused style

remove unused style

xixi

|
3,180 installs
| (4) | Free
An extension to remove unused style in react-native
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

removeUnusedStyle README

This is a VS code extension to remove unused style in react-native

Usage

type CMD+P(or CTRL+P in windows) and enter remove unused style, then save the file.

Usage animation

how it works

  1. it uses @babel/parser to parse the code
  2. say const styles = Stylesheet.create(obj). it will search styles. plus all keys in obj.
  3. then apply deletion according to the line number parsed by @babel/parser.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft