From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Use Peek Definition to see inline definitions

Use Peek Definition to see inline definitions - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Use Peek Definition to see inline definitions

- Peek Definition is another way to go to a code definition. It works like this. I'm inside this program.cs file, I want to look up the definition for this book data source. I showed you earlier in this chapter, you can right-click and choose go to definition. And that opens the file in this separate tab. With Peek Definition I don't have to open that separate tab. Right-click here, choose to Peek Definition. And instead I get this inline window that allows me to view or edit the code in another file without opening the tab. Or I think of it another way. The tab is here inline in your document. Now I can see the entire document here, I can scroll up and down within this window. When I'm done looking, I can click the X button to close the peek window. Let's do it again. This time we'll do it on this method. It works like you'd expect. Let's say that I want to edit the code. One way I can do that is click on this button here to promote to a document. Now it becomes a full-fledged tab, I…

Contents