locked
Find and Find in Files on VS2012 RRS feed

  • Question

  • In previous versions of VS when you used Ctrl-F (find) the scope was automatically set to "document".  When you pressed Ctrl-Shift-F, the scope was set to entire solution.  In VS 2012 the search scopes are not set.  

    Regardless of which key combination you press you always get whatever the scope was set to the last time any sort of find was done.  To reproduce:

    • Ctrl-Shift-F and then manually change scope to  "entire solution".  
    • Ctrl-F - scope remains "entire solution" when it should be "document"

    or

    • Ctrl-F - and then manually change scope to "document"
    • Ctrl-Shift-F - scope remains "document" when it should be "entire solution"

    The same thing happens with search and replace: Ctrl-H and Ctrl-Shift-H don't set search scope either.  This is a surprisingly big problem.  Search and replace operations started with Ctrl-H are applying changes to the entire solution resulting in lots of wasted time undoing changes applied to the wrong files.

    Am I missing something in configuration or have the distinct scopes previously available in "Find" and "Find in Files" been removed from this version?

    Saturday, November 3, 2012 7:12 PM

Answers

  • It was reported back in August on Microsoft Connect - link is below.  

    If anyone is wondering how seriously Microsoft is taking database development tools these days, I think we have our answer in Visual Studio 2012:  database unit tests were removed, and basic find and replace functionality lost.  In our view VS 2012 is a very disappointing product release for database developers. 

    https://connect.microsoft.com/VisualStudio/feedback/details/759133/attempting-to-open-the-quick-find-dialog-when-a-sql-file-has-focus-opens-the-find-in-files-dialog

    Thursday, November 8, 2012 3:31 PM

All replies

  • Hi Kazoo,

    To be honest I feel a little confused about your issue. What is the specific issue you have: 1). Do you mean your issue is Ctrl-F and Ctrl-Shift-F always remembers the last setting and does not reset to the deault setting "document" or "entire solution" automatically? 2). Or do you mean scope setting of Ctrl-F also applies for Ctrl-Shift-F? That is, if you set scope of Ctrl-F to be "document" then the scope of Ctrl-Shift-F is also set to "document".

    If you are referring to the first one, I personally think that it is the correct behavior. I can get it in both VS2010 and VS2012.

    And if you are referring to the second one, I am sorry that I can't reproduce it. Maybe you some other custom settings cause it not working correctly. So, please first try to run devenv /resetSettings command to reset your VS to the default settings.

    Thanks. 


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us

    Tuesday, November 6, 2012 2:45 AM
  • Thanks Vicky.  I am sorry my description wasn't clear.  Perhaps some of the other people describing this same issue have done a better job.  If you do an internet search for "Visual Studio 2012 Find Scope Problem" you should be able to find a dozen or so threads complaining of the same problem.  I have pasted a few below.

    The first link posted below describes the problem as not  being able to get to the Quick Find dialog. On re-examination, that is a better description.  Pressing Ctrl-F fails to bring up the Quick Find dialog as it should - it brings up Find in Files (like Ctrl-Shif-F).  I experienced the error when working in a database project in SQL files.  When I just tried the the quick find feature in a c# project - it works fine.  

    http://stackoverflow.com/questions/12313201/visual-studio-2012-ui-quickfind-disappeared

    http://visualstudio.uservoice.com/forums/121579-visual-studio/suggestions/2666815-make-separate-search-scope-for-ctrl-f-and-ctrl-shi

    http://connect.microsoft.com/VisualStudio/feedback/details/734756/visual-studio-11-text-search-scope-is-shared-between-quick-find-and-find-in-files

    http://stackoverflow.com/questions/9636618/quick-find-find-in-files-scope-in-visual-studio-11-beta


    • Edited by Kazoo Tuesday, November 6, 2012 5:17 PM
    Tuesday, November 6, 2012 3:56 PM
  • Hi Kazoo,

    Thanks for your response. And based on your description, you can't get the Quick Find dialog when working with .sql files in database project, you always get the Find And Replace dialog instead.

    I am so sorry that I can reproduce it on my machine. Could you please submit one feedback on the Microsoft Connect site? Once you finished it, please post back the link, I will help you to vote it.

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, November 8, 2012 12:49 AM
  • It was reported back in August on Microsoft Connect - link is below.  

    If anyone is wondering how seriously Microsoft is taking database development tools these days, I think we have our answer in Visual Studio 2012:  database unit tests were removed, and basic find and replace functionality lost.  In our view VS 2012 is a very disappointing product release for database developers. 

    https://connect.microsoft.com/VisualStudio/feedback/details/759133/attempting-to-open-the-quick-find-dialog-when-a-sql-file-has-focus-opens-the-find-in-files-dialog

    Thursday, November 8, 2012 3:31 PM