If you hover over a CSS selector or property, VS Code will provide an HTML snippet that’s matched by the CSS rule, and it will also show the specificity.

For example, this very specific rule that’s similar to one I came across recently:

screenshot of hovering in css

I also had to look up the ~ which is the General sibling combinator.