From the course: Visual Studio Developer Tips

Unlock this course with a free trial

Join today to access over 22,400 courses taught by industry experts.

Reference highlighting

Reference highlighting

- [Instructor] You're sitting at your desk, it's almost lunchtime, you have an offsite meeting with your colleagues to go to that restaurant you've been looking forward to. You've still got a few minutes to do some work and you're looking through your code to find all the places where you reference a certain item. Visual Studio has a lot of tools for looking through your code editors. I want to look at something called Reference Highlighting in this tip. Before I do that, though, let me show you the Search feature. I'll select female names here, and then copy, then press control F to bring up Find, and then paste that in. What you see in my code editor is all the places where it found the words female names and is highlighting that in yellow. It found it in this variable here although it didn't select the underscore. It found it here in this file name. It also found it here in this method name. This is a useful tool but that's not what I want to look at. Sometimes you just want to…

Contents