Sign in

How does webstorm see where a file is referenced ?

Stilllearning edited in Sat, 01 Oct 2022

Problem Description:

file index.js , how to view and which pages refer to this file

export default [
3 Replies
commented on Sat, 01 Oct 2022

Select Default and press alt + F7

commented on Sat, 01 Oct 2022

This operation can be adopted by lookout!

commented on Sat, 01 Oct 2022

To view a method and where a file is referenced, select the object to view (which can be object declaration or reference), and press Alt + F7 to view the type:

  • method
  • variable

It's very useful for viewing vuex. Variables are stored in the state. To change the value in the state, you can only use mutations. Asynchronous logic processing is placed in actions. The page layer should refer to the contents that can be used in actions. It's very clear and won't let an object be referenced and modified anywhere at will;