Unused declaration highlight

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.

Webstorm version:2020.2.4

 

 

 



1
4 comments

Invoke Find Usages for createResizeEventListener() method - are any usages reported? Also, does the issue persist after caches invalidation (File > Invalidate caches, Invalidate and Restart)?

1

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?

 

0

Yes, it does inspect the whole project when looking for method usages

1

I understand, thank you very much for the information. Elena Pogorelova

0

Please sign in to leave a comment.