Search stops working for “Entire Solution”

后端 未结 28 1276
温柔的废话
温柔的废话 2020-12-02 03:30

Somehow Visual Studio search has stopped working for me. Anytime I search \"Entire Solution\" for some text I get this result:

Find all \"[Whatever I

相关标签:
28条回答
  • 2020-12-02 04:03

    This bug has been in Visual Studio a long time and it never seems to get fixed.

    See this MS Connect item from 2004: http://connect.microsoft.com/VisualStudio/feedback/details/105511/find-in-files-says-no-files-were-found-to-look-in-find-was-stopped

    I couldn't believe they still hadn't fixed it in VS2010 - but it's still there :(

    The Connect item has been marked as Closed - Won't Fix: https://connect.microsoft.com/VisualStudio/feedback/details/718217/find-was-stopped-in-progress-while-performing-search-in-visual-studio

    0 讨论(0)
  • 2020-12-02 04:03

    Ctrl + F and Ctrl + Shift + F have stopped working on Visual Studio 2015 Community Edition.

    My friend told me going to:

    1. Tools → Import and Export Settings:

    2. Choose: Reset all settings → Next

    3. Choose: No, just reset settings, overwriting my current settings → Next

    4. Choose: General → Finish

    0 讨论(0)
  • 2020-12-02 04:03

    In Visual Studio 2013 after Update 3, I had the same problem. Before, I could just put ".cs" or ".cshtml" in the Look at these file types: and it would work. But after Update 3 I now have to put ".cs" or ".cshtml" (or whatever file types I want to search in) and it works fine.

    0 讨论(0)
  • 2020-12-02 04:03

    This works for me after everything else didn't or worked only sometimes:

    Do the search, and while searching, hold CRTL all the time and keep pressing Break.

    0 讨论(0)
  • 2020-12-02 04:04

    Bug source

    This is neither Visual Studio nor Windows related bug. In fact, the bug is in your keyboard! Many keyboards from different vendors have been reported to be buggy.

    Problem

    If you press Ctrl+Break and release Ctrl first, then Break gets stuck on a buggy keyboard. If you ever pressed Ctrl+Break the "wrong" way, you will have this problem with search being interrupted.

    Details

    According to scan code specifications, Break and Ctrl+Break are special. They send "make" (press) AND "break" (release) scan codes the moment you press Break. They send nothing when you release Break. The buggy keyboard will send the following sequence:

    1. Ctrl "make" scan code
    2. Ctrl+Break "make" scan code
    3. Ctrl "break" scan code
    4. Pause "break" scan code

    That is, Ctrl+Break is never released, but instead Pause is released.

    Reproduction

    You could for example use old good Spy++ from Visual Studio tools. Attach it to anything, for example Windows notepad, and monitor messages (I suggest that you select only keyboard messages). Press Ctrl+Break, releasing Ctrl first. Check the output from Spy++. You will see the sequence I shown in Details section.

    I have tried two different keyboards on the same computer. Logitech K120 has the bug while some other Mitsumi keyboard behaves according to specifications and does not have the bug.

    If you think about it, it's easy to understand that correct behavior needs special case handling, while buggy behavior is naive. This is why many different keyboards can be buggy.

    Solution

    Replace your keyboard :)

    Workaround

    You simply need to press Ctrl+Break, paying attention to releasing Break first. It doesn't matter which application is active.

    0 讨论(0)
  • 2020-12-02 04:04

    I had the same problem in Visual Studio 2013 (Update 3). None of the key combinations listed previously worked for me. I had *.cs selected in the FileTypes.

    To get it working, I changed it to *.*, and then back again to *.cs - now it works.

    0 讨论(0)
提交回复
热议问题