Visual Studio Tip: Peek Definition

Play Visual Studio Tip: Peek Definition
Sign in to queue


You are working on your code and find a method call. You can't remember what that method does. Maybe you use Go To Definition F12 to bring up the method you are calling so you can review the code. If you use Go To Definition you will LOVE Peek Definition ALT+F12. Peek Definition will bring up the method called inline within the code editor window, so you can review and edit the code in the same window as your current code.  Check out this short video demonstration and discover the power of ALT+F12!



The Discussion

  • User profile image

    Is there a way how I can add a breakpoint while I'm in Peek Definition?

  • User profile image

    I tried the usual clicking in the margins and the keyboard shortcut <F9> but unfortunately it looks like right now you cannot add a breakpoint when in Peek Definition. Time for a feature request to the VS team perhaps :)

Add Your 2 Cents