How to actually search all files in Visual Studio










43














I am using Visual Studio Express 2013 for Web. Say for instance I have a static public method named FooBar() in class Utils. Let's also say that I use this method in a lot of .aspx files. Let's say I change the method signature of FooBar() to FooBar(string), and subsequently I'd like to find all the instances of Utils.FooBar so I can update them.



Now let's say I go to the Solution Explorer search box, select "Search within file contents", and type "Utils". Despite the fact that I make Utils.* method calls everywhere, the only thing that shows up is the Utils.cs file. If I keep typing "Utils.FooBar", nothing shows up.



Right now, I am launching a cygwin window and using grep since normal windows search is pretty useless too. But it seems like there there must be an actual way of searching within all files in Visual Studio. Am I missing something?










share|improve this question




























    43














    I am using Visual Studio Express 2013 for Web. Say for instance I have a static public method named FooBar() in class Utils. Let's also say that I use this method in a lot of .aspx files. Let's say I change the method signature of FooBar() to FooBar(string), and subsequently I'd like to find all the instances of Utils.FooBar so I can update them.



    Now let's say I go to the Solution Explorer search box, select "Search within file contents", and type "Utils". Despite the fact that I make Utils.* method calls everywhere, the only thing that shows up is the Utils.cs file. If I keep typing "Utils.FooBar", nothing shows up.



    Right now, I am launching a cygwin window and using grep since normal windows search is pretty useless too. But it seems like there there must be an actual way of searching within all files in Visual Studio. Am I missing something?










    share|improve this question


























      43












      43








      43


      3





      I am using Visual Studio Express 2013 for Web. Say for instance I have a static public method named FooBar() in class Utils. Let's also say that I use this method in a lot of .aspx files. Let's say I change the method signature of FooBar() to FooBar(string), and subsequently I'd like to find all the instances of Utils.FooBar so I can update them.



      Now let's say I go to the Solution Explorer search box, select "Search within file contents", and type "Utils". Despite the fact that I make Utils.* method calls everywhere, the only thing that shows up is the Utils.cs file. If I keep typing "Utils.FooBar", nothing shows up.



      Right now, I am launching a cygwin window and using grep since normal windows search is pretty useless too. But it seems like there there must be an actual way of searching within all files in Visual Studio. Am I missing something?










      share|improve this question















      I am using Visual Studio Express 2013 for Web. Say for instance I have a static public method named FooBar() in class Utils. Let's also say that I use this method in a lot of .aspx files. Let's say I change the method signature of FooBar() to FooBar(string), and subsequently I'd like to find all the instances of Utils.FooBar so I can update them.



      Now let's say I go to the Solution Explorer search box, select "Search within file contents", and type "Utils". Despite the fact that I make Utils.* method calls everywhere, the only thing that shows up is the Utils.cs file. If I keep typing "Utils.FooBar", nothing shows up.



      Right now, I am launching a cygwin window and using grep since normal windows search is pretty useless too. But it seems like there there must be an actual way of searching within all files in Visual Studio. Am I missing something?







      visual-studio visual-studio-2012 full-text-search






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 4 '16 at 2:18









      abatishchev

      69k69261392




      69k69261392










      asked Aug 14 '14 at 14:26









      Mike Godin

      1,41111522




      1,41111522






















          4 Answers
          4






          active

          oldest

          votes


















          61














          I think you are talking about ctrl + shift + F, by default it should be on "look in: entire solution" and there you go.






          share|improve this answer






























            28














            So the answer seems to be to NOT use the Solution Explorer search box.



            Rather, open any file in the solution, then use the control-f search pop-up to search all files by:



            1. selecting "Find All" from the "--> Find Next / <-- Find Previous" selector

            2. selecting "Current Project" or "Entire Solution" from the selector that normally says just "Current Document".





            share|improve this answer
















            • 3




              the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
              – Muflix
              Mar 13 '17 at 12:33


















            11














            Press Ctrl+,



            Then you will see a docked window under name of "Go to all"



            This a picture of the "Go to all" in my IDE



            Picture






            share|improve this answer






















            • But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
              – AndreyWD
              Apr 16 at 11:41



















            2














            One can access the "Find in Files" window via the drop-down menu selection and search all files in the Entire Solution:
            Edit > Find and Replace > Find in Files



            enter image description here



            Other, alternative is to open the "Find in Files" window via the "Standard Toolbars" button as highlighted in the below screen-short:



            enter image description here






            share|improve this answer




















              Your Answer






              StackExchange.ifUsing("editor", function ()
              StackExchange.using("externalEditor", function ()
              StackExchange.using("snippets", function ()
              StackExchange.snippets.init();
              );
              );
              , "code-snippets");

              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "1"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25310572%2fhow-to-actually-search-all-files-in-visual-studio%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              4 Answers
              4






              active

              oldest

              votes








              4 Answers
              4






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              61














              I think you are talking about ctrl + shift + F, by default it should be on "look in: entire solution" and there you go.






              share|improve this answer



























                61














                I think you are talking about ctrl + shift + F, by default it should be on "look in: entire solution" and there you go.






                share|improve this answer

























                  61












                  61








                  61






                  I think you are talking about ctrl + shift + F, by default it should be on "look in: entire solution" and there you go.






                  share|improve this answer














                  I think you are talking about ctrl + shift + F, by default it should be on "look in: entire solution" and there you go.







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 17 '16 at 18:15









                  Jeff Puckett

                  14.1k651102




                  14.1k651102










                  answered May 17 '16 at 17:21









                  n4feng

                  6901613




                  6901613























                      28














                      So the answer seems to be to NOT use the Solution Explorer search box.



                      Rather, open any file in the solution, then use the control-f search pop-up to search all files by:



                      1. selecting "Find All" from the "--> Find Next / <-- Find Previous" selector

                      2. selecting "Current Project" or "Entire Solution" from the selector that normally says just "Current Document".





                      share|improve this answer
















                      • 3




                        the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
                        – Muflix
                        Mar 13 '17 at 12:33















                      28














                      So the answer seems to be to NOT use the Solution Explorer search box.



                      Rather, open any file in the solution, then use the control-f search pop-up to search all files by:



                      1. selecting "Find All" from the "--> Find Next / <-- Find Previous" selector

                      2. selecting "Current Project" or "Entire Solution" from the selector that normally says just "Current Document".





                      share|improve this answer
















                      • 3




                        the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
                        – Muflix
                        Mar 13 '17 at 12:33













                      28












                      28








                      28






                      So the answer seems to be to NOT use the Solution Explorer search box.



                      Rather, open any file in the solution, then use the control-f search pop-up to search all files by:



                      1. selecting "Find All" from the "--> Find Next / <-- Find Previous" selector

                      2. selecting "Current Project" or "Entire Solution" from the selector that normally says just "Current Document".





                      share|improve this answer












                      So the answer seems to be to NOT use the Solution Explorer search box.



                      Rather, open any file in the solution, then use the control-f search pop-up to search all files by:



                      1. selecting "Find All" from the "--> Find Next / <-- Find Previous" selector

                      2. selecting "Current Project" or "Entire Solution" from the selector that normally says just "Current Document".






                      share|improve this answer












                      share|improve this answer



                      share|improve this answer










                      answered Aug 22 '14 at 1:25









                      Mike Godin

                      1,41111522




                      1,41111522







                      • 3




                        the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
                        – Muflix
                        Mar 13 '17 at 12:33












                      • 3




                        the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
                        – Muflix
                        Mar 13 '17 at 12:33







                      3




                      3




                      the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
                      – Muflix
                      Mar 13 '17 at 12:33




                      the issue is that sometimes i dont have the option "Entire Solution" but i dont know why yet. The ctrl + shift + f approach works.
                      – Muflix
                      Mar 13 '17 at 12:33











                      11














                      Press Ctrl+,



                      Then you will see a docked window under name of "Go to all"



                      This a picture of the "Go to all" in my IDE



                      Picture






                      share|improve this answer






















                      • But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
                        – AndreyWD
                        Apr 16 at 11:41
















                      11














                      Press Ctrl+,



                      Then you will see a docked window under name of "Go to all"



                      This a picture of the "Go to all" in my IDE



                      Picture






                      share|improve this answer






















                      • But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
                        – AndreyWD
                        Apr 16 at 11:41














                      11












                      11








                      11






                      Press Ctrl+,



                      Then you will see a docked window under name of "Go to all"



                      This a picture of the "Go to all" in my IDE



                      Picture






                      share|improve this answer














                      Press Ctrl+,



                      Then you will see a docked window under name of "Go to all"



                      This a picture of the "Go to all" in my IDE



                      Picture







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Sep 11 '17 at 1:15









                      Stephen Rauch

                      27.7k153256




                      27.7k153256










                      answered Sep 11 '17 at 0:50









                      Ahmed Ibrahim

                      13326




                      13326











                      • But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
                        – AndreyWD
                        Apr 16 at 11:41

















                      • But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
                        – AndreyWD
                        Apr 16 at 11:41
















                      But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
                      – AndreyWD
                      Apr 16 at 11:41





                      But it cannot find text (I'm not talking about symbols) within project/solution. At least in VS 2017 (v15.6.5)
                      – AndreyWD
                      Apr 16 at 11:41












                      2














                      One can access the "Find in Files" window via the drop-down menu selection and search all files in the Entire Solution:
                      Edit > Find and Replace > Find in Files



                      enter image description here



                      Other, alternative is to open the "Find in Files" window via the "Standard Toolbars" button as highlighted in the below screen-short:



                      enter image description here






                      share|improve this answer

























                        2














                        One can access the "Find in Files" window via the drop-down menu selection and search all files in the Entire Solution:
                        Edit > Find and Replace > Find in Files



                        enter image description here



                        Other, alternative is to open the "Find in Files" window via the "Standard Toolbars" button as highlighted in the below screen-short:



                        enter image description here






                        share|improve this answer























                          2












                          2








                          2






                          One can access the "Find in Files" window via the drop-down menu selection and search all files in the Entire Solution:
                          Edit > Find and Replace > Find in Files



                          enter image description here



                          Other, alternative is to open the "Find in Files" window via the "Standard Toolbars" button as highlighted in the below screen-short:



                          enter image description here






                          share|improve this answer












                          One can access the "Find in Files" window via the drop-down menu selection and search all files in the Entire Solution:
                          Edit > Find and Replace > Find in Files



                          enter image description here



                          Other, alternative is to open the "Find in Files" window via the "Standard Toolbars" button as highlighted in the below screen-short:



                          enter image description here







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Nov 12 at 13:06









                          Nash

                          466




                          466



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f25310572%2fhow-to-actually-search-all-files-in-visual-studio%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              這個網誌中的熱門文章

                              What does pagestruct do in Eviews?

                              Dutch intervention in Lombok and Karangasem

                              Channel Islands