Reputation: 193282
In Eclipse you can search for a file in the project by pressing CTRL-SHIFT-R.
Is there a way to do this in Visual Studio?
Upvotes: 340
Views: 290156
Reputation: 1717
I don't know Eclipse, however in Visual Studio 2022 you can use CTRL + T
Upvotes: 2
Reputation: 173
I believe what you are searching for is this Ctrl+T. With this you can search for symbols inside files and also can search files if you remove the hash(#) symbol.
See the screenshot if having doubts.
Upvotes: 7
Reputation: 3423
In VS 2022 -- Couple of ways
As per screenshot 1 <Ctrl + Shift + T> , But that doesnt work with that key combination, although it works with mouse click.
As per screenshot 2 go to menu Edit -> Go To - > Go To File <Alt + E + G + F>
Upvotes: 2
Reputation: 5255
I'd recommend PhatStudio if you're using upto VS 2012. Works pretty fast, and supports multi-word search by using "space". So to search for LoginController, you could press Alt+O and search using "Lo Con".
You could also use ReSharper (paid) and CodeMaid (free) to do this.
Upvotes: 3
Reputation: 1890
In VS2013 you can click in the solution explorer for this functionality.
The shortcut is:
ctrl + ;
To search only the names of files, and not the contents (especially in C#), uncheck these options:
Upvotes: 76
Reputation: 2150
With Visual Studio 2017 Community edition on mac, the shortcut is:
To see these commands, navigate to the top menu: Search > Go To
Upvotes: 1
Reputation: 51
You can press ctrl+t to get a editor Get to all , in which you can type the file name to navigate to that specific file.
Upvotes: 2
Reputation: 1612
Visual Studio 2019:
Menu -> Preferences -> Key Bindings -> Navigate To...
Upvotes: 0
Reputation: 8124
To search by File name:
To search by Type name:
Your keyboard focus might have been gone to following Right side Top corner of the Visual Studio Window:
Upvotes: 3
Reputation: 1919
The best option now is to install Microsoft Visual Studio add on called Productivity Power Tools (VS 2010 version, VS 2013 version).
With this comes "Solution Navigator" (alternative to Solution Explorer, with a lot of benefits).
BTW, this feature is built-in into Visual Studio 2012.
Upvotes: 61
Reputation: 337
In Visual Studio 2017 you can search directly for files with Ctrl+1, Ctrl+F (Keyboard command: Edit.GoToFile).
Alternatively, you can use Ctrl+t or Ctrl+, (the Edit.GoToAll command) and start your search with f.
Upvotes: 9
Reputation: 222522
With Visual Studio 2017
, It now comes with a much better version, named “Go To All”
and is bound to the keyboard shortcut CTRL + T
as well as CTRL +,
and includes inline filtering and “fuzzy search”
CTRL + T
CTRL + ,
Upvotes: 52
Reputation: 371
You can easily call for a window called "Navigate To" with combination ctrl + ,
Or, go to Tools and then click Navigate To
Upvotes: 2
Reputation:
Visual Assist: link.
Install, load solution, press Shift+Alt+O, search for files in solution by substring. Try also Shift+Alt+S, for the equivalent for symbols. This addin has a bunch of completion popup and syntax colouring stuff in it that aren't to all tastes, but the code browsing features are done well and seem uncontroversial.
Judging by comments on the forums, compatibility with Resharper is something they pay attention to.
For free, try also Nifty Solution: link.
I haven't used this myself, but I use the author's Nifty Perforce plugin, and that is pretty tidy.
Upvotes: 3
Reputation: 10931
In Visual Studio 2008 (and probably later), the free DevExpress CodeRush Xpress add-in supplies Ctrl+Alt+F, Quick File Navigation, which searches on an exact substring in the file name or on capital letters.
(Unrelated to this answer, but note the rather more useful, Quick Navigation, Ctrl+Shift+Q, which I would have liked to have known about before now :-) )
Upvotes: 0
Reputation: 362
Open command window( View -> Other windows -> command window - Ctrl + W, A) type >of followed by the file name. It would start showing up the list as you type.
Upvotes: 2
Reputation: 10753
Just for anyone else landing on this page from Google or elsewhere, this answer is probably the best answer out of all of them.
To summarize, simply hit:
CTRL + ,
And then start typing the file name.
Upvotes: 695
Reputation: 33
Is too simple by using the Windows Explorer search inside the project folder. Done.
Upvotes: 0
Reputation: 672
I use usysware DPack: http://www.usysware.com/dpack/
Then I just press ALT-U start typing the filename and choose the correct file. DPack also has other nice features.
(highlights added for screenshot)
Note: Will not work in Express editons of Visual Studio, since they don't allow plugins.
Upvotes: 4
Reputation: 82934
Since you mention ReSharper in a comment:
You can do this in ReSharper by using the "Goto File..." option (Ctrl-Shift-N or ReSharper -> Go To -> File...) in my key mappings.
Upvotes: 6
Reputation: 918
In the search dropdown on the standard toolbar, you can use the "open file" macro, >of, to find files. Click in said dropdown (or hit Ctrl-D) then start typing (minus the quotes) ">of CoreEdit.cs", and you'll get a dynamic list that narrows as you type.
Upvotes: 15