react-css-modules-intellij-plugin icon indicating copy to clipboard operation
react-css-modules-intellij-plugin copied to clipboard

Support for highlighting unused styles

Open NovacDK opened this issue 6 years ago • 2 comments

It would be very useful to have some sort of indication if a style is being used in the corresponding .tsx file.

It can be tricky with concatenated styles but it might simply be something that you ignore if you know the style is used. Otherwise, if possible, a grey underline could be used for styles with no full or partial usage and a green underline for styles containing e.g. "-label" and "-label" is being used in a concatenated style in the .tsx file.

NovacDK avatar May 23 '18 10:05 NovacDK

css modules are currently natively supported by IntelliJ. https://github.com/jimkyndemeyer/react-css-modules-intellij-plugin/issues/1#issuecomment-308105789.

chrisblossom avatar May 23 '18 22:05 chrisblossom

I just checked the native functionality, and while there is references support and completion, it doesn't annotate missing classes, nor does it provide intentions to create the classes.

The plugin appears to work alongside the native functionality without issues, so there is no need to remove this plugin from the repo yet.

jimkyndemeyer avatar May 24 '18 07:05 jimkyndemeyer