35

In visual studio when i press F12 (go to definition) on any methods it open in a "peek" kind of window on the right side of the document tabs in fushia/pink like color on the dark theme. The problem is that 99% of the time i need to F12 into 2 or more methods but that window keep being replace by the latest. So i need to remember to click pin for every single time i press F12. I am wondering if i can disable this peek and make F12 open in a normal window like i opened the class.

I already disabled the preview class on the project treeview which open any class in the same "peek" tab.

I found some help but for VS2013 with powertool but VS2015 these tools are integrated and i didn't found the equivalent option menu.

My VS is up to date excluding the latest Azure update which i don't use.

Franck
  • 4,438
  • 1
  • 28
  • 55

5 Answers5

55

Check the Visual Studio options:

  • Disable "Control click shows definitions in Peek" option in: OptionsProductivity Power ToolsOther Extentions.
  • Disable "Allow new files to be opened in preview tab" in: OptionsEnvironmentTabs and Windows.
  • Ensure you have F12 key assigned to Edit.GoToDefinition per Global scope in: OptionsEnvironmentKeyboard.

UPDATE: It works for Visual Studio 2017 as well.

Ilya Chumakov
  • 23,161
  • 9
  • 86
  • 114
  • 2
    Productivity power tools does not exist in VS2015. The second point did the job. i only had the find result checked in the sub list. – Franck Dec 23 '15 at 14:58
  • 2
    @Franck, PPT exist in VS2015 (at least for Enterprise ed.). I have such extention and this node in my `Options` tree. – Ilya Chumakov Dec 23 '15 at 15:02
  • @llya VS2015 Professional edition does not have this option. Gotta check the Community Edition at home see if this one has. – Franck Dec 23 '15 at 18:07
  • 1
    @Franck https://visualstudiogallery.msdn.microsoft.com/34ebc6a2-2777-421d-8914-e29c1dfa7f5d – Ilya Chumakov Dec 23 '15 at 18:18
  • In VS2017, the first option exists at Options > Productivity Power Tools > General under "Control click options" – dst3p Oct 05 '18 at 19:33
6

In visual studio 2017, professional edition:

In visual studio 2017, professional edition

rene
  • 41,474
  • 78
  • 114
  • 152
MStack
  • 328
  • 3
  • 6
4

For Visual Studio 2019, you can find the setting under Options->Text Editor->General->Enable mouse click to perform Go to Definition->Open definition in peek view

ElFik
  • 897
  • 2
  • 13
  • 31
2

Following the accepted answer didn't work, I solved by unchecking:

enter image description here

I'm using Visual Studio 2015 Pro

Phate01
  • 2,499
  • 2
  • 30
  • 55
1

I know its been a while. Anyways, here is how you can disable the Peek functionality when you do Ctrl+Click in Visual Studio 2015.

Go to Tools=>Options=>Productivity Power Tools=>Other Extensions and then simply uncheck the highlighted checkbox.

enter image description here

Baig
  • 1,489
  • 1
  • 25
  • 41