In Visual Studio 2019, how can I disable the peek that happens after using a quick action/refactor, such as Create Declaration/Definition for a class function?

jbpend 1 Reputation point
2021-10-05T14:03:47.563+00:00

I have some classes that I am refactoring to fit in with our newer coding standards. A few of the quick action and refactoring options have been very helpful. However, since I am making these changes, more or less, in bulk, I'd like the "peek" at the changed code to be disabled (for now, at least). How can I do that? It's taking me longer since each time I make a change, as I need to scroll over and close the peek window each and every time.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,871 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,629 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Michael Taylor 51,341 Reputation points
    2021-10-05T14:40:44.66+00:00

    You don't need to close the peek window. It goes away once you apply the change (at least for C#).

    C++ doesn't expose all the same options that some other languages have but if you go to the Tools\Options you can search for Preview and see all the settings. Nothing shows up that really relates to the specific behavior you're talking about beyond the standard Preview tab behavior.

    0 comments No comments

  2. jbpend 1 Reputation point
    2021-10-05T14:50:59.26+00:00

    What I see, using C++, is like the window that opens if I use Alt-F12 or right click and select Peek Definition. In this case, I don't want it to peek after the other action. I don't see any "Preview" options that seem to be related to this. as you said.