Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 C++ Create Definition without peek

The new feature in Visual Studio 2015 which auto-generates a stub C++ definition based on the declaration in the .h file is great. Except... it opens a peek window which I do not want. Can I prevent it from opening the peek window when I generate a function definition stub?

like image 569
Matthew James Briggs Avatar asked Mar 11 '16 01:03

Matthew James Briggs


People also ask

How do I enable definition in Visual Studio?

Go To Definition If you are a keyboard user, place your text cursor somewhere inside the symbol name and press F12. If you are a mouse user, either select Go To Definition from the right-click menu or use the Ctrl-click functionality described in the following section.

How do I enable peek in Visual Studio?

You can peek a definition by choosing Peek Definition from the right-click menu for a type or member that you want to explore. If the option is enabled, you can also peek a definition using the mouse, by pressing Ctrl (or another modifier) and clicking the member name.

Why is definition disabled in Visual Studio?

Answers. Don't close Visual Studio but close all the files and open them again by clicking on the file in the solution. The file might have been opened by Source Safe or you maybe opened it from Windows Explorer. In this case the file doesn't get assosiated with your solution and the Go to Def.

How do I add code to definition in Visual Studio?

Go to Definition# If a language supports it, you can go to the definition of a symbol by pressing F12. Tip: You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click.


1 Answers

I don't know if negative answer would count for you, but anyway:

A quote from visualstudio.uservoice.com:

In Visual Studio 2015, Microsoft added the not so little light bulb that comes up every once and a while with suggestions. I would you the team to reconsider changing the behavior of the "create definition" so instead of opening this annoying inline editor at the bottom, it takes you directly to the source file. All the c++ productivity tools override this native behavior because it is so terrible and annoying.

And the official answer is

Customizing the post-operation experience is on our backlog, and we hope to get to it soon!

This combined with the under review status of the suggestion makes me believe that currently there's no way of getting rid of inline editor popping up all the time.

On a rhetoric side note, I wonder why would they add a new feature without an option to disable it...

like image 122
sunny moon Avatar answered Oct 21 '22 04:10

sunny moon