Code Pope
Code Pope

Reputation: 5459

Visual Studio 2019: Peek definition with combination of mouse and keyboard click

By default, Peek Definition is performed if you click Alt+F12 in VS 2019. If you use mouse click + Ctrl then Go to Definition is performed.
Is there also an option to use the combination of mouse click and a keystroke to perform Peek Definition?

Upvotes: 8

Views: 1512

Answers (1)

Chris Catignani
Chris Catignani

Reputation: 5306

You need to set an option first (documented below).

So...CTRL+Click will go to the definition. You can make it open a Peek window by changing an option.

Click Tools->Options
Under Text Editor->General
Enable mouse click to perform Go to Definition (should be checked)
Check the Open definition in peek view

Now Ctrl+Click will open a peek window.

You could also just right click on it and Peek Definition.

Upvotes: 4

Related Questions