208

Does Visual Studio 2010 have a built-in way to quickly find/open files, similar to the Ctrl+Shift+O function in Eclipse?

Or does ReSharper offer this functionality?

Pang
  • 9,564
  • 146
  • 81
  • 122
Cody C
  • 3,087
  • 4
  • 24
  • 32

19 Answers19

460

Ctrl+,

I'm surprised no one gave the right answer:

Navigate To can show you a list of open files and lots more. http://weblogs.asp.net/scottgu/archive/2009/10/21/searching-and-navigating-code-in-vs-2010-vs-2010-and-net-4-0-series.aspx

CTRL+COMMA is your friend.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Kirill Osenkov
  • 8,786
  • 2
  • 33
  • 37
  • It can bring back more than you want sometimes but that can be helpful. For instance today, I knew we had a ValidateDate method for validating dates we insert into our DB but wasn't sure where it was. Ctrl+, and type ValidateDate and instantly saw it was in our AbstractDAO.vb – Cody C Apr 22 '10 at 14:22
  • 32
    Moreover, it understands FCLN (FirstCapitalLetterNotation). For example, to find ValidateDate, just type VD – Kirill Osenkov Apr 26 '10 at 17:26
  • 2
    Very useful, cheers... I'm using vb and for some reason I had to reset the keyboard mappings (to Visual Studio C# 2005) for this to work - Tools/Options/Keyboard/Apply the following additional.. – wheelibin Aug 11 '10 at 07:27
  • Thank you so much for this answer. I just don't understand why they didn't have the uncommon-sense to keep a 'search' option for the user when right-clicking on the solution. – Nav Oct 20 '11 at 10:47
  • 1
    I too had to add the shortcut myself as it was not assigned to edit.navigateto but now works a treat. only problem is i wish it could search with case insensitive – pengibot May 14 '12 at 09:44
  • 2
    For anybody trying to do this in the Express edition, this feature is only available in the paid version of Visual Studio 2010. – David Feb 19 '13 at 22:22
  • 6
    In case you've lost your shortcut: Pre VS2017, it's under Tools, Options, Keyboard >>> `Edit.NavigateTo`. In 2017, that's moved to `Edit.GoToAll` ([hat tip](http://stackoverflow.com/a/43760342/1028230)) – ruffin May 05 '17 at 18:10
  • this doesnt work for visual studio code - Ctrl+, opens setting. I just saw you can Ctrl+Shft+F – GenDemo Jan 07 '21 at 04:03
43

Ctrl + Alt + A opens the command window, type "open" then start typing file names and it will dynamically autocomplete by available solution file name.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
DShultz
  • 4,381
  • 3
  • 30
  • 46
16

I use Ctrl + / to jump to the command bar (same as the search box, but with a > prefixed in the text). I then type "of" (for "open file") and start typing the name of the file to open. Possibly matches are automatically displayed by VS.

I also found that when using ReSharper, the familiar Eclipse shortcut for Open Type (Ctrl + Shift + T) is mapped to ReSharper's GotoFile command.

alastairs
  • 6,697
  • 8
  • 50
  • 64
8

There is also another way to find files in the Visual Studio 2010 might be useful for someone.

In the command box in visual studio toolbar type ">of " and start typing the file name it will prompt list. Note: This will only find the class not the pages try it for yourself.

enter image description here

Praveen Mitta
  • 1,408
  • 2
  • 27
  • 48
6

this addin will very usefule to quickly open files from visual studio by pressong CTRL + K + O

http://visualstudiogallery.msdn.microsoft.com/en-us/3eb2f230-2728-4d5f-b448-4c0b64154da7

Jeeva Subburaj
  • 1,881
  • 2
  • 18
  • 26
  • @DimitriC: read the reviews of this and it's reported as being slow. An alternative (which I'm the author of) - [VSFileNav](http://visualstudiogallery.msdn.microsoft.com/cfdf85c2-aaa4-4bdd-b8ea-e22bcc9860af) – Ian Dec 07 '11 at 20:13
  • @Ian, - I've used it often (and still do) and it is great in my opinion. – Mr Moose Jan 21 '12 at 10:10
  • Emm, the addin maybe [Quick Open File for Visual Studio 2010](https://marketplace.visualstudio.com/items?itemName=MartinKutny.QuickOpenFileforVisualStudio2010), which is the new link. – zhenguoli Aug 13 '19 at 01:51
6

In VS2017 or later versions, we have command called "Edit.GoToAll".

SO can configure it from VS tools.

see below snap.

enter image description here

I have configured my keys for file search as CTRL + SHIFT + T

Bharat
  • 5,869
  • 4
  • 38
  • 58
4

CTRL+SHIFT+F will bring open a find in files search dialog box. The result will be listed, usually, on the lower section of VS in a Find Files result box. Double clicking a result will open it

Chris
  • 26,744
  • 48
  • 193
  • 345
  • CTRL+SHIFT+S doesn't do anything for me? And I really want something that searches as I type. There are several addons that do it for earlier versions of VS but I was hoping that MS included it in this version of VS. – Cody C Apr 19 '10 at 13:08
  • Ctrl+Shift+F opens "Find in Files". – alastairs Apr 19 '10 at 13:15
4

DPack has a dialog for finding files in the current solution (search all, or only open files), and it also has a dialog to search the current file for methods,properties, etc. Very nice! Note that the current version only supports VS 2012 or newer, but they have binaries there for older versions of VisualStudio as well:

http://www.usysware.com/dpack/

You could also try Sonic File Finder, which does something similar to CTRL+COMMA:

http://www.jens-schaller.de/sonic-tools/sonicfilefinder/overview/overview.htm

Brad Parks
  • 66,836
  • 64
  • 257
  • 336
2

In Eclipse, Ctrl+Shift+O = "Organize Imports"... which I am not sure what this is. But it is not the Ctrl+Shift+F = Find in Files that is in Visual Studio.

Xonatron
  • 15,622
  • 30
  • 70
  • 84
2

VSFileNav - An extension that I created that allow rapid file searching. It's basically got all the ReSharper functionality that was disabled in the express version of VS2010 (I used to really like this).

It's also free :)

Ian
  • 33,605
  • 26
  • 118
  • 198
2

For file name search, I use the Visual Studio Productivity Power Tools. It adds a tab to Solution Explorer called "Solution Navigator". It shows all the solution files in a tree and has a search bar at the top.

To search for text in all your solution files, use Entrian's Source Search: https://stackoverflow.com/a/9994522/24267

Pang
  • 9,564
  • 146
  • 81
  • 122
mhenry1384
  • 7,538
  • 5
  • 55
  • 74
1

Visual Assist comes with something like this. You will have to pay for the plugin (and I don't think you can use plugins in the express versions).

(If you're doing C++ and you don't plan to buy Visual Assist, be sure to never install the trial. It's that addictive.)

sbi
  • 219,715
  • 46
  • 258
  • 445
1

I usually use Ctrl+Q or Everything tool via a hotkey.

Zinovy Nis
  • 455
  • 6
  • 9
1

For fuzzy search of files (and more) I needed to use cmdp

JTE
  • 1,301
  • 12
  • 14
1

" ⌘ + P "

If someone's still looking for this for Mac and in 2023.

Additionally, here's a list of keyboard shortcuts from MS: https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf

Dalinar
  • 11
  • 2
0

Type >open filename in the command box in the Visual studio can also open the file

Matt
  • 6,010
  • 25
  • 36
0

NavigateToAll extends the built-in Navigate To by enabling you to open any file on the disk (not just the ones in the solution).

tcb
  • 4,408
  • 5
  • 34
  • 51
0

Unfortunately, VS doesn't offer this search-as-you-type functionality (and lots more).

thelost
  • 6,638
  • 4
  • 28
  • 44
0

CTRL + P, the right solution for me....

CTRL + , -> SETTINGS

CodeBabyCode
  • 37
  • 1
  • 8