Ctrl+Alt+/ Preview command

Sam of Simple Samples 5,506 Reputation points

What does the Preview command do? The keyboard shortcut for it is Ctrl+Alt+/. When I was customizing a toolbar I noticed the command (just called Preview) in the Edit commands. I cannot find anything describing it or even anything else mentioning it. I added it to a toolbar. In a C# file when I click the icon I get a message saying no smart edits found but I cannot find C# code from which I get anything other than no smart edits found.

I am using VS 2022. At the time I posted I was using 17.0 I think but a few minutes ago it was updated to Version 17.1.0.

The following shows the Add Command window and the specified Preview command.

The following shows the results (saying no smart edits found) in an edit window of when I click the Preview icon I added to a toolbar.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,781 questions
{count} votes

2 answers

Sort by: Most helpful
  1. David Lowndes 4,686 Reputation points

    I believe it's the IntelliCode suggestions feature.

  2. Anna Xiu-MSFT 18,716 Reputation points Microsoft Vendor


    I agree with DavidLowndes-6766.

    Based on my testing, I suppose the preview will track your local edits and review the multiple locations where you might need the same change.
    If it shows “no smart edits found”, it may not find the place that needs to be changed.

    You can try to disable the feature by Tools > Options > IntelliCode > General > Suggestions > C#: Disabled.

    If you need more content information about the feature, you can submit feedback in the intellicode page.

    Thanks for your understanding!

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments