From the course: Visual Studio Code Productivity Tips

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Explore and navigate code: Find All References

Explore and navigate code: Find All References

From the course: Visual Studio Code Productivity Tips

Explore and navigate code: Find All References

- [Instructor] In this tip, we're looking at finding all references to a function. To be clear, this feature can find references to all kinds of code constructs, but for this tip, we'll find references to this min function. It's in this context menu, right-click and choose Find All References. I said in another video that we look at Go to References, but I meant Find All References. What does it do? The Find All References command helps you discover where specific code elements are referenced throughout your codebase. This feature is useful for exploring code, understanding dependencies, and refactoring. So let's run it. You'll see the relevant text highlighted in orange within the code editor, or whatever color is configured in your Visual Studio Code theme. You can see it on line 1 and on line 8. In addition to those highlights in the code window, a References sidebar appears on the left side, providing a summary of where the references are located. It tells me at the top that there…

Contents