Unused declaration highlight Follow
I am developing on vue js using webstorm.I want the colors of unused methods to be gray like the exampleMethod1 method color.
It used to be done automatically but now it doesn't work. How can I fix it?
As you can see in the example picture createResizeEventListener and exampleMethod1 are not used but createResizeEventListener method is colored.
I did not understand what the two methods color according to.
Please sign in to leave a comment.
Invoke Find Usages for createResizeEventListener() method - are any usages reported? Also, does the issue persist after caches invalidation (File > Invalidate caches, Invalidate and Restart)?
Yes, it does inspect the whole project when looking for method usages
I followed the steps you said.
The createResizeEventListener method still looks colored.
createResizeEventListener is used in another vue file but is independent of this page.
I think webstorm checking this method in the whole project?
I understand, thank you very much for the information. Elena Pogorelova