Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way in vscode to know where the current the file has been imported?

Are there any extensions/features in vs-code which could let me know where the current file is imported? I usually do a global search of the filename but it is time consuming when the file name is similar to any variable or there are similar named files.

like image 726
vanshaj Avatar asked Oct 30 '19 16:10

vanshaj


Video Answer


1 Answers

You can do a right-click on every function / variable or class. Then you choose "Find all references" to show where each function / variable or class is called. For this you do not need an extension, because it is a standard feature of vscode

like image 166
Interface Avatar answered Oct 28 '22 15:10

Interface