I have a number of HTML files with explicit style="..." tags instead of using CSS classes. It would be nice to have a new inspection to detect such attributes. (If one exists, I haven't been able to find it.)
In the ideal case, there would also be one or more quickfixes. I can imagine a number of useful variations:
- Extract a new CSS class
- Extract a new CSS class, and ask whether all other occurrences of the same style="..." information should be replaced with this class too.
- Replace style tag with use of an existing class matching the same style
But the inspection itself is more important, so tell me if you'd like me to put the quickfix suggestions as a separate SCR.